Could not load file or assembly 'Microsoft.VisualStudio.Web.PageInspector.Loader

后端 未结 14 1785
清酒与你
清酒与你 2020-12-12 23:31
Could not load file or assembly \'Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\' or one of its depen         


        
相关标签:
14条回答
  • 2020-12-13 00:03

    I just ran into the same problem, and the culprit was my uninstalling of Visual Studio Express 2012. It's possible that it might be any version of Visual Studio, as comments on this answer are indicating the issue still happens with Visual Studio 2019. My overall order of operations was:

    • Installed Visual Studio Express 2012 (long time ago)
    • Used Visual Studio Express 2012 happily for many months
    • Installed Visual Studio 2013 Premium
    • Used Visual Studio 2013 Premium happily for weeks
    • Uninstalled Visual Studio Express 2012
    • ERROR

    I'm not 100% certain on the cause of it, or what combinations of Visual Studio versions would exhibit this behavior. But the solution for me was to edit the root web.config files in the framework directories:

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

    (For different framework versions you may have different folders.)

    And remove the nodes:

    <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" />
    

    Be careful not to remove any opening/closing parent nodes which are also on the same line(s) as these.

    This resolved the issue for me.

    0 讨论(0)
  • 2020-12-13 00:03

    I had this issue after installing Visual Studio 2019 (whilst 2017 was still installed). It's caused by a missing component - AspNetDiagnosticPack.msi - that fails to install a required package into C:\ProgramData\Microsoft\VisualStudio\Packages\

    The solution that worked for me was this:

    • Close Visual Studio

    • Download the package from:

    https://download.visualstudio.microsoft.com/download/pr/e13d544f-5a3c-4bb3-9a7c-1e56b1f90e10/f8e5888ff01a7009ef8c2ef16aa02ab9/aspnetdiagnosticpack.msi

    • Run the installer and install.

    This should fix it.

    More information can be be found: https://developercommunity.visualstudio.com/content/problem/398640/could-not-load-file-or-assembly-microsoftvisualstu-7.html

    0 讨论(0)
  • 2020-12-13 00:04

    I've ran into this error while trying to run an ASP.NET project in VS2013 after having uninstalled a VS2015 preview. Repairing the VS2013 installation seems to have solved the problem.

    0 讨论(0)
  • 2020-12-13 00:05

    For those who might end up here, try removing the following line in the Web.Config file of your Project while debugging <identity impersonate="true" userName="blah" password="blah">

    It took time until I finally came across the following thread: Could not load file or assembly or one of its dependencies. Access is denied. The issue is random, but after it happens once, it continues

    0 讨论(0)
  • 2020-12-13 00:05

    I got this answer is perfect for me

    No need to remove those lines

    Just close and reopen the Visual studio with Admin privileges.

    0 讨论(0)
  • 2020-12-13 00:08

    If you don't see web.config in both of paths: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config

    file "Web" is in "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\" what I really want to show you, It's Web.config, you should open it with: notepad++... and remove:

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

    I finish my problem with them.

    0 讨论(0)
提交回复
热议问题