MVC 5应用程序中的csc.exe错误

时间:2017-07-12 15:34:38

标签: c# asp.net asp.net-mvc roslyn

我正在研究的Asp.net网络应用程序(貌似)今天早上随机开始出错。我整天都在努力解决这个问题,但还没有取得任何进展。

visual studio中的错误显示如下。

"csc.exe" exited with code -532462766.  ReportLogProject".

调试时,浏览器中显示的错误是

"Could not load type 'ReportLogProject.Global'."

"<%@ Application Codebehind="Global.asax.cs" 
Inherits="ReportLogProject.Global" Language="C#" %>"

我尝试过重建,重新安装编译器软件包等,但没有任何效果。

非常感谢任何帮助。

编辑。下面添加了Global.asax.cs和Globsal.asac代码。

namespace ReportLogProject
{
 public class MvcApplication : System.Web.HttpApplication
 {
    protected void Application_Start()
    {
        AreaRegistration.RegisterAllAreas();
        FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
        RouteConfig.RegisterRoutes(RouteTable.Routes);
        BundleConfig.RegisterBundles(BundleTable.Bundles);
    }
 }
}

Global Asax:

<%@ Application Codebehind="Global.asax.cs" Inherits="ReportLogProject.Global" Language="C#" %>

0 个答案:

没有答案
相关问题