Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 无法构建c#asp.net mvc应用程序_Visual Studio 2010_C# 4.0 - Fatal编程技术网

Visual studio 2010 无法构建c#asp.net mvc应用程序

Visual studio 2010 无法构建c#asp.net mvc应用程序,visual-studio-2010,c#-4.0,Visual Studio 2010,C# 4.0,当我尝试构建应用程序时,我得到: Error 1 Unexpected error reading metadata from file 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll' -- 'Index not found.' NHMDLive.Models 我想不出可能是什么问题。我已经检查了mscorlib.dll并进行了校验和,它

当我尝试构建应用程序时,我得到:


Error   1   Unexpected error reading metadata from file 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll' -- 'Index not found.' NHMDLive.Models

我想不出可能是什么问题。我已经检查了mscorlib.dll并进行了校验和,它没有损坏。一定是别的东西。

你不能用VS2008为dotnet的第4版编码


您必须升级到VS 2010,或者使用3.5或更低版本的程序集

对于我使用的VS 2010no pb标签,我感到非常抱歉。如果您从头开始创建一个新的空白项目,并且不进行任何修改。。。它能编译吗?不,我收到了同样的信息。我也尝试过安装.NET4。如果我尝试在3.5下编译同一个空白项目,它编译得很好。尝试重新安装VS 2010。。。但这只是一个赌注。我在VS 2013中遇到了相同的错误-
从文件“c:\Program Files(x86)\Reference Assembly\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll”——“未知错误(8007000e)”读取元数据时出现意外错误
。后来,正在调试的我的exe因
内存不足
错误而崩溃。虽然我在尝试调试而不是构建它时遇到了这个错误。另外,您还有一些未找到索引的附加内容。