0

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 アプリの実行は正常に機能しました。

4

1 に答える 1

0

VS2012 を修復した後、MVC4 Web アプリケーションは再び動作するように見えました。ご尽力いただきありがとうございます。

于 2013-09-28T12:06:31.930 に答える