加载我的 Web 应用程序时出现此错误:
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 Configuration > Security 时,我遇到了几乎相同的错误:
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.'
这个问题有什么解决办法吗?
我在用着 :
- 视觉工作室 2012
- iis 8 快递
- Windows 8 专业版 64 位
运行 MVC3 Web 应用程序成功。