Compilation Error in asp.net? - asp.net

In my application i am using youtubevide (www.aspnet-video.com). I installed and write the code. when i run this application it is showing like this.....
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'ASPNetVideo.WindowsMedia' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\youtubevideo\fe0d5a9d\4d87ccb0\assembly\dl3\690f1934\002677f1_a2eec901\ASPNetVideo.NET3.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\youtubevideo\fe0d5a9d\4d87ccb0\assembly\dl3\b377a6f8\17e0b64d_33fcca01\ASPNetVideo.NET2.DLL'
Source Error:
Line 11:
Line 12:
Line 13:
Line 14:

It seems you have included tho different assemblies defining the same class. Have a look at your project references.

Related

BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.staff_hod_site_master'

while running my page showing error one error. The error is :
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl'
is not a member of 'ASP.staff_hod_site_master'.
Source Error:
Line 23: Line 24: Line 25: Line 26: This shop requires
JavaScript to run correctly. Please activate JavaScript in your
browser. Line 27:
Help me to find a proper solution. Thank you.
Check your Page directive and make sure it is inheriting the proper file.
<%# Page Language="VB" AutoEventWireup="false" CodeFile="Index.aspx.vb" Inherits="Reports_Index" %>
And check the partial class too.
Partial Class Reports_Index
This typically happens if you renamed the file.
Check for other/additional dependencies which you might've missed. The last time I had this error it was because I only deployed the files which were part of my current build, instead of all of the files in my ./bin/ folder. I looked in my (currently working) dev machine, in the project/bin/ folder and found a few additional files (which were not in my newest build). Once I added those to my server, problem-solved.

Compiler Error Message: CS0009 - mscorlib.dll

When I try to run my web application, the following error occurs:
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: CS0009: Metadata file
'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' could not
be opened -- 'File is corrupt.'
It seems to me that the .NET framework 4 installation is corrupt, but I am using Windows 8.1, and I'm not sure how to repair this, as it is integrated into the Windows installation.
I manually copied the corrupted file from a different computer with the same Windows installation. It took some permission changing, but I managed to do it.

Could not load type 'NavigateWebApp.Global'

Recently we have moved our project to web app and everything is good but suddenly I do not know when I am trying to debug my application its showing me the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'NavigateWebApp.Global'.
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs" Inherits="NavigateWebApp.Global" Language="C#" %>
Source File: /global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971
I am sure that there are no build errors.
This is probably caused by your 'NavigateWebApp.Global' class/namespace not being available in the location you've specified.
Check where you define this and ensure it's accessible to the Global.asax page.
The root of the problem is your Global.asax file is referencing a class which no longer exists (or at least at the location you have specified). Simple fix is to update the Inherits attribute with the fully qualified path to your Global.asax class name (which you will find in the Global.asax.cs file).

Web service Compilation Error

I have a problem with a web service. I add a web service reference to my project. I use this service in many pages. It is working correctly, no problems in VS but I copy App_WebReferences folder's files and Web.Config file to ISS path. But it is not working.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'InterkomLaboratuar' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 22: InterkomLaboratuar.Service1SoapClient _sistemTip = new InterkomLaboratuar.Service1SoapClient();
Source File: c:\Inetpub\wwwroot\MedulaV3\diyaliz02\Istemler.aspx.cs Line: 22
How can i solve this problem please help..
Copy Bin folder to IIS. You are missing some assemblies.

Error compiling ASMX while accessing the web service

I have a ASMX web service. When I access it from a client the ASMX get compiled but I get this error:
Looking at csc.exe command line from the error detail the System.Windows.Forms asseembly is not referenced.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
Source Error:
Line 3: using System.ComponentModel;
Line 4: using System.Drawing;
Line 5: using System.Windows.Forms;
Line 6: using System.Xml;
Line 7: using Idp.Core.Configuration;
This problem can occur for at least two reasons:
The required assembly (in this case, System.Windows.Forms) is not referenced by your project. You can resolve this by adding the reference to your project in Visual Studio and, if required, redeploying the site.
The using statement is superfluous. Sometimes I wind up with unwanted using statements in my file. If it's unused, deleting line 5 should resolve the issue.

Resources