问题描述
我正在Visual Studio Community 2015中进行 webforms
项目(三层).
I'm working on a webforms
project (3-tier) in Visual Studio Community 2015.
我已经将我的项目从一台笔记本电脑移到另一台笔记本电脑,但是现在该项目没有运行.
I've moved my project from one laptop to another and now the project is not running.
注意:另一台笔记本电脑具有Visual Studio Professional 2015.
Note: Another Laptop has Visual Studio Professional 2015.
我正在使用Windows 10专业版.
I'm using Windows 10 Professional.
任何帮助将不胜感激!
推荐答案
此错误与您的项目无关.文件 Microsoft.VisualStudio.Web.PageInspector.Loader
是Visual Studio的一部分.新笔记本电脑是否具有已删除的其他版本的Visual Studio(例如2012)?最简单的解决方案是完全卸载Visual Studio的所有版本,重新启动计算机,然后安装所需的版本(例如Visual Studio 2015社区).
This error has nothing to do with your project. The file Microsoft.VisualStudio.Web.PageInspector.Loader
is part of Visual Studio. Did the new laptop have different versions of Visual Studio (e.g. 2012) which have been removed? The easiest solution is to uninstall all versions of Visual Studio completely, reboot the machine, and then install the version that you want (e.g. Visual Studio 2015 Community).
或者,您必须自己修复它.为此,您必须在以下文件夹中修改计算机的web.config文件:
Alternatively, you'll have to fix it by yourself. To do so, you have to modify the machine web.config file in these folders:
在文本编辑器中打开web.config文件,搜索对 Microsoft.VisualStudio.Web.PageInspector.Loader
的所有引用并将其删除.然后重新启动Visual Studio并运行您的项目.
Open the web.config file in a text editor and search for all references to Microsoft.VisualStudio.Web.PageInspector.Loader
and delete them. Then restart Visual Studio and run your project.
另一个选择是修改项目中的web.config.不建议这样做,但是可以使用.在下面添加行:
Another option is to modify the web.config in your project. This is not recommended, but it will work. Add the lines bellow:
<compilation>
<assemblies>
<remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>
</compilation>
这篇关于无法加载文件或程序集"..."或其依赖项之一.文件或目录已损坏,无法读取从VS15 Comunity到Professional的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!