0

I'm getting this error when loading my web application:

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 


I'm getting pretty much the same error when I go to 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.'

Is there any solution to this issue?

I'm using :

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

Running an MVC3 web app worked successfully.

HichemSeeSharp
  • 3,240
  • 2
  • 22
  • 44

1 Answers1

0

After repairing VS2012, MVC4 Web Applications seemed to work again. Thanks everyone for your effort.

HichemSeeSharp
  • 3,240
  • 2
  • 22
  • 44