我用VS 2015 RC和MVC模板创建了一个新应用程序,没有修改任何代码行,我有以下错误:

Method not found: '!!0[] System.Array.Empty()'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.]
   SAASApp.BundleConfig.RegisterBundles(BundleCollection bundles) in C:\Proyectos\SAASApp\SAASApp\App_Start\BundleConfig.cs:29
   SAASApp.MvcApplication.Application_Start() in C:\Proyectos\SAASApp\SAASApp\Global.asax.cs:18

[HttpException (0x80004005): Method not found: '!!0[] System.Array.Empty()'.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +483
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +350
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +305

[HttpException (0x80004005): Method not found: '!!0[] System.Array.Empty()'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +661
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +96
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189

第一次发生在我身上,所以我现在被困住了

推荐答案

我在生产服务器上遇到这种情况,而在开发机器上,一切正常.

安装.目标机器上的NETFramework 4.6已修复该问题.

Asp.net相关问答推荐

如何处理当前文件中基本文件中的S onClick方法

有人可以解释一下这个Eager 加载示例吗?

禁用托管优化并重新启动调试实际上在 Visual Studio 中更改了哪些设置?

目前不支持超过 65534 个段的跨区存档

如何在 IIS 上配置 Web Deploy 发布功能,以便开发人员可以发布?

如何注册路由区域

如何使用 executeReader() 方法仅检索一个单元格的值

/应用程序中的服务器错误. ASP.NET

跨子域共享 ASP.NET cookie

在使用网络服务器加载它们之前,如何编译 Asp.Net Aspx 页面?

ASP.Net 自定义客户端验证

.Net Standard 2.0 类库是否有通用配置文件?

如何在不预编译的情况下使用命令行msbuild部署VS2012网站项目?

显示 ModalPopupExtender 时如何指定要运行的 javascript

将当前谷歌 map 保存为图片

路由模板分隔符/不能连续出现 - 属性路由问题

如何进入 IIS 管理器?

MVC3 和实体框架

协调 ASP.NET 脚本包和源映射

ASP.NET - 从静态方法/静态类访问会话?