This error has nothing to do with your project. The Microsoft.VisualStudio.Web.PageInspector.Loader file is part of Visual Studio. Did the new laptop have different versions of Visual Studio (e.g. 2012) that were removed? The simplest solution is to completely remove all versions of Visual Studio, restart the computer, and then install the version you need (for example, the Visual Studio 2015 community).
In addition, you will have to fix it yourself. To do this, you need to modify the web.config file of the machine in the following folders:
C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Config \ web.config C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Config \ web.config
Open the web.config file in a text editor and find all the links to Microsoft.VisualStudio.Web.PageInspector.Loader and delete them. Then restart Visual Studio and run the project.
Another option is to modify the web.config file in your project. This is not recommended, but it will work. Add the lines below:
<compilation> <assemblies> <remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </assemblies> </compilation>
source share