使用XSP加载MVC应用程序时出现单声道运行时错误

时间:2014-09-24 01:51:44

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

我最近开始研究一些课程并为单项目做出贡献。它实际上并不像我期望的那样艰难....但我有一个问题,只是在一些本地构建后突然出现....以下来自xsp服务器:

An exception has occurred while generating HttpException page: System.NullReferenceException: Object reference not set to an instance of an object at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig () [0x00006] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Web/System.Web.Util/HttpEncoder.cs:194 at System.Lazy``1[System.Web.Util.HttpEncoder].InitValue () [0x0015f] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System/Lazy.cs:164

接下来是:

The actual exception which was being reported was: System.Web.HttpException: Initial exception ---> System.InvalidCastException: Cannot cast from source type to destination type. at System.Web.HttpRuntime..cctor () [0x00051] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Web/System.Web/HttpRuntime.cs:138 --- End of inner exception stack trace ---

我可以看到此代码如下: runtime_section = (HttpRuntimeSection) WebConfigurationManager.GetSection ("system.web/httpRuntime");

所以演员阵容失败了......我假设我有一些错误的组装在某个地方,但实际上找不到它。

这似乎发生在任何新的MVC项目和之前工作的项目上。

有什么建议吗?

0 个答案:

没有答案