开发者

Why can't my app load MvcApplication?

I am having trouble running my asp.net mvc 2 app. using VS2010 ASP.NET Development Server.

error displayed in browser:

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 'PrototypeB.MvcApplication'.
 Source Error: 
  Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="PrototypeB.MvcApplication" Language="C#" %>
 Source File: /global.asax    Line: 1 
 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

global.aspx.cs:

namespace PrototypeB
{
    public class MvcApplication : System.Web.Htt开发者_JAVA百科pApplication
    {
        ...


Please copy paste the namespace in Global.asax file, right click on Global.asax and choose 'View Markup' to see it

https://forums.asp.net/t/1559469.aspx/1?Could+not+load+type+MvcApplication1+MvcApplication+

I just fixed the same problem just by copy pasting and recompiling solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜