无法加载文件或程序集'Microsoft.VisualStudio.Web.PageInspector.Loader [英] Could not load file or assembly 'Microsoft.VisualStudio.Web.PageInspector.Loader

查看:220
本文介绍了无法加载文件或程序集'Microsoft.VisualStudio.Web.PageInspector.Loader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


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 module was expected to contain an assembly manifest.


Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\11.0\WebDev.WebServer40.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = TTLWIN2K\miralp
LOG: DisplayName = Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/SVN/temp/components/src/MasterpassProxy/src/Webservice/
LOG: Initial PrivatePath = C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

推荐答案

我只是遇到了同样的问题,而罪魁祸首是我卸载了 Visual Studio Express 2012 .可能是任何版本的Visual Studio,因为对此答案的评论表明 Visual Studio 2019 仍然存在此问题.我的总体操作顺序是:

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:

  • 安装了Visual Studio Express 2012(很久以前)
  • 愉快地使用Visual Studio Express 2012几个月了
  • 已安装Visual Studio 2013 Premium
  • 愉快地使用Visual Studio 2013 Premium数周
  • 卸载的Visual Studio Express 2012
  • 错误
  • 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

我不确定它的原因是100%还是Visual Studio版本的哪种组合会表现出此行为.但是对我来说,解决方案是在框架目录中编辑根web.config文件:

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.)

并删除节点:

<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.

这篇关于无法加载文件或程序集'Microsoft.VisualStudio.Web.PageInspector.Loader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆