1

I got the same problem like here Could not load file or assembly 'Microsoft.VisualStudio.Web.PageInspector.Loader but not on my development machine but on hosting server.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config

I was able to fix it by adding below code to my web.config

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

or by removing reference to this assembly from web.config files in framework directories.

I never installed VS there and i never had PageInspector installed there. Any idea why those configs reference them?

Community
  • 1
  • 1
Pawel
  • 887
  • 1
  • 9
  • 28
  • Is the assembly in the bin folder on the hosting server? If not, in VS, find the assembly in your project bin folder, highlight it, and choose "Copy Local" in the properties window. Then be sure to copy it to the hosting server. – Zath Dec 15 '16 at 16:49
  • i'm not using page inspector. It's referenced by the framework configs not by my project. – Pawel Dec 15 '16 at 16:51
  • VS must have added it when you created the project. It does that according to project type. Just remove it if you're not going to use it. – Zath Dec 15 '16 at 16:52
  • did you read my post? It was on clear hosting machine without any trace of VS. – Pawel Dec 16 '16 at 08:42

0 Answers0