Not sure why I always encounter a server error message “Could not load file or assembly ‘Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.” whenever I create a new web project in my Visual Studio Express. The same issue even occurs on my previous or client projects.
This issue starts occuring after installing Sitefinity, there are something wrong with my current .Net framwork but I don’t know what.
In order to fix this quickly, I have to add 1 line in the web.config file:
<remove assembly="Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
An sample of the web.config like this:
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <remove assembly="Microsoft.VisualStudio.Web.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </assemblies> </compilation> </system.web> </configuration> |
Hope I can find a way to solve this problem completely soon.