Failed to install Visual Studio Page Inspection Node

I have an ASP MVC project that I have not done, but I need to upload it to the IIS server. This works, but when I download it and visit the website, I get this error:

Could not load file or assembly 'Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

Everything works locally, but not on the server. Things I've already tried:

  • .NET Framework Recovery
  • Trying to delete 2 lines from the .NET Framework webconfig (located in: C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Config), but cannot, because the file is being used. Unable to stop process due to Access Denied error.

I found that deleting these two lines might be the solution, but I cannot delete them:

 <remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 

Is there something I am missing? Any help is much appreciated! thanks

+5
source share
1 answer

Try adding only this line to your web.config site. Configuration files are inherited from the .NET database to your site, and then folders on your site. Thus, your site will override the configuration of the .NET framework.

 <remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 

EDIT

The line should go here ...

 <configuration> <system.web> <compilation> <assemblies> <remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </assemblies> </compilation> </system.web> </configuration> 

It should be noted that everything that is undesirable in the assembly attribute is more than likely to be identical to the one that adds it to the .NET framework configuration.

+10
source

All Articles