I have follwing eror开发者_Python百科r after I have published site in IIS 7.5 and i don't hnow what to do
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 'ProiectLicenta.MvcApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="ProiectLicenta.MvcApplication" Language="C#" %>
The solution you accepted is incomplete. For the sake of others researching this problem in the future, I'll elaborate.
Literally, this means that ASP.NET couldn't locate the type 'ProiectLicenta.MvcApplication'.
This can happen for a number of reasons. In order of likelyhood (imho, of course), they are:
You are ignoring an error when building your site. If the assembly or project that contains
ProiectLicenta.MvcApplication
can not be compiled, then ASP.NET will not be able to locate any classes or other entities therein contained. Solution: correct all compiler errors and try again.The class
ProiectLicenta.MvcApplication
is not explicitly declared with the correct access specifier. Remember, classes declared likeclass MyClass { ... }
are private. You'll probably want to change the declaration to
public class MyClass { ... }
You are deploying your site and not including the assembly (DLL) which defines the type
ProiectLicenta.MvcApplication
. Correct your deployment process and try again.
The Global.asax file cannot find the code-behind class MvcApplication in namespace ProiectLicenta. Search your solution and find the ProiectLicenta.MvcApplication class. If you cannot find the class in your solution maybe it is in an external dll that you need to add to the project.
精彩评论