运行MVC4 Web App错误

时间:2013-09-28 10:51:40

标签: asp.net asp.net-mvc-4 windows-8 iis-8

加载我的网络应用程序时出现此错误:

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0009: Metadata file 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll' could not be opened -- 'No metadata was found.'

Source Error:


[No relevant source lines]

Source File:    Line: 0 

当我转到ASP.NET配置>时,我得到了几乎相同的错误。安全:

    There is a problem with your selected data store. This can be caused by an invalid 
server name or credentials, or by insufficient permission. It can also be caused by the 
role manager feature not being enabled. Click the button below to be redirected to a page 
where you can choose a new data store. 

    The following message may help in diagnosing the problem:
 (0): error CS0009: Metadata file 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\
v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll' could not be opened -- 'No metadata was found.'

这个问题有解决方法吗?

我正在使用:

  • Visual studio 2012
  • iis 8 express
  • Windows 8 Pro 64bit

运行MVC3网络应用程序成功运作。

1 个答案:

答案 0 :(得分:0)

修复VS2012后,MVC4 Web应用程序似乎再次运行。谢谢大家的努力。