I have follwing erorr 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 like
class 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With