Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 无法加载文件或程序集';Microsoft.VisualStudio.Web.PageInspector.Loader 无法加载文件或程序集“Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。模块应包含程序集清单。 从以下位置加载的程序集管理器:C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll 在可执行文件C:\Program Files(x86)\Common Files\Microsoft Shared\DevServer\11.0\WebDev.WebServer40.exe下运行 ---下面是详细的错误日志。 ==预绑定状态信息=== 日志:User=TTLWIN2K\miralp 日志:DisplayName=Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=neutral,PublicKeyToken=b03f5f7f11d50a3a (详细说明) 日志:Appbase=file:///C:/SVN/temp/components/src/MasterpassProxy/src/Webservice/ 日志:Initial PrivatePath=C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\bin 正在调用程序集:(未知)。 === 日志:此绑定在默认加载上下文中启动。 日志:使用应用程序配置文件:C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\web.config 日志:使用主机配置文件: 日志:使用C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config中的计算机配置文件。 日志:发布策略参考:Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a_Visual Studio_Page Inspector - Fatal编程技术网

Visual studio 无法加载文件或程序集';Microsoft.VisualStudio.Web.PageInspector.Loader 无法加载文件或程序集“Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。模块应包含程序集清单。 从以下位置加载的程序集管理器:C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll 在可执行文件C:\Program Files(x86)\Common Files\Microsoft Shared\DevServer\11.0\WebDev.WebServer40.exe下运行 ---下面是详细的错误日志。 ==预绑定状态信息=== 日志:User=TTLWIN2K\miralp 日志:DisplayName=Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=neutral,PublicKeyToken=b03f5f7f11d50a3a (详细说明) 日志:Appbase=file:///C:/SVN/temp/components/src/MasterpassProxy/src/Webservice/ 日志:Initial PrivatePath=C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\bin 正在调用程序集:(未知)。 === 日志:此绑定在默认加载上下文中启动。 日志:使用应用程序配置文件:C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\web.config 日志:使用主机配置文件: 日志:使用C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config中的计算机配置文件。 日志:发布策略参考:Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a

Visual studio 无法加载文件或程序集';Microsoft.VisualStudio.Web.PageInspector.Loader 无法加载文件或程序集“Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。模块应包含程序集清单。 从以下位置加载的程序集管理器:C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll 在可执行文件C:\Program Files(x86)\Common Files\Microsoft Shared\DevServer\11.0\WebDev.WebServer40.exe下运行 ---下面是详细的错误日志。 ==预绑定状态信息=== 日志:User=TTLWIN2K\miralp 日志:DisplayName=Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=neutral,PublicKeyToken=b03f5f7f11d50a3a (详细说明) 日志:Appbase=file:///C:/SVN/temp/components/src/MasterpassProxy/src/Webservice/ 日志:Initial PrivatePath=C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\bin 正在调用程序集:(未知)。 === 日志:此绑定在默认加载上下文中启动。 日志:使用应用程序配置文件:C:\SVN\temp\components\src\MasterpassProxy\src\Webservice\web.config 日志:使用主机配置文件: 日志:使用C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config中的计算机配置文件。 日志:发布策略参考:Microsoft.VisualStudio.Web.PageInspector.Loader,版本=1.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a,visual-studio,page-inspector,Visual Studio,Page Inspector,我从gac中删除了dll,它开始工作。我不知道那些DLL是从哪里来的。如果您有2个或更多版本的visual studio,请重新安装上一个版本。我刚刚遇到了相同的问题,而罪魁祸首是我卸载了visual studio Express 2012。它可能是Visual Studio的任何版本,因为对此答案的评论表明,Visual Studio 2019仍然存在此问题。我的总体行动顺序是: 已安装Visual Studio Express 2012(很久以前) 愉快地使用Visual Studio E

我从gac中删除了dll,它开始工作。我不知道那些DLL是从哪里来的。如果您有2个或更多版本的visual studio,请重新安装上一个版本。

我刚刚遇到了相同的问题,而罪魁祸首是我卸载了visual studio Express 2012。它可能是Visual Studio的任何版本,因为对此答案的评论表明,Visual Studio 2019仍然存在此问题。我的总体行动顺序是:

  • 已安装Visual Studio Express 2012(很久以前)
  • 愉快地使用Visual Studio Express 2012已有好几个月了
  • 已安装Visual Studio 2013高级版
  • 愉快地使用Visual Studio 2013 Premium达数周之久
  • 已卸载Visual Studio Express 2012
  • 错误
我不能100%确定它的原因,也不能确定VisualStudio版本的哪些组合会表现出这种行为。但我的解决方案是编辑框架目录中的根
web.config
文件:

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 (对于不同的框架版本,您可能有不同的文件夹。)

并删除节点:

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

小心不要删除与这些节点在同一行上的任何打开/关闭父节点


这为我解决了这个问题。

对于那些可能最终出现在这里的人,请在调试时尝试删除项目的Web.Config文件中的以下行

我花了很长时间才最终发现以下线索:

我在卸载VS2015预览版后尝试在VS2013中运行ASP.NET项目时遇到此错误。修复VS2013安装似乎解决了问题。

无需删除这些线路

只需使用管理员权限关闭并重新打开Visual studio

即可尝试更新Microsoft.ApplicationInsights nuget软件包。这还会安装其他依赖项。当我不得不改变我的目标框架时,我遇到了这个问题

  • 工具>NuGet软件包管理器>管理的NuGet软件包 解决方案
  • 搜索“applicationinsights”
  • 或运行

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

    它通过在此线程中应用已批准的解决方案,解决了我端的问题

    修改以下两个文件并删除Microsoft.VisualStudio.Web.PageInspector.Loader解决了此问题

    Install-Package Microsoft.ApplicationInsights
    

    我遇到了同样的问题,但不是在我的开发机器上,而是在托管服务器上

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

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
    
    我可以通过在我的web.config中添加以下代码来修复它

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
    
    
    
    或者从framework目录中的web.config文件中删除对此程序集的引用

    我从未在那里安装过VS,也从未在那里安装过PageInspector。知道为什么这些配置引用它们吗?

    也有类似的问题(另一个程序集),对我来说,这是机器上web.config中缺少的一行。我认为这一行可以让web服务器加载(任何?)dll。 我必须在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>
    
    像这样

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
    
    
    ...
    
    为了找到它,我必须将该文件与工作服务器上的文件进行比较。 因此,在我看来,这确实是一个负载故障,但要确定它为什么会失败,我们需要了解Sherh。。
    通常我使用ProcessMonitor之类的工具来找出负载失败的原因,但这次,当然,它没有给我任何有用的输出。。IIS从未尝试加载程序集

    如果在这两个路径中都看不到web.config:
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.Config
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.Config

    文件“Web”位于“
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\
    ”中。我真正想向您展示的是
    Web.Config
    ,您应该用记事本++。。。并删除:

        <compilation>
          <assemblies>
            ...
            <add assembly="*" />
          </assemblies>
        </compilation>
    
    /”
    

    我完成了与他们的问题。

    更新:根据在Visual Studio 2019版本16.0.3中修复。

    如果在升级到Visual Studio 2019 RC后发生这种情况,则以下解决方法会有所帮助:

  • 查找下载缓存目录
  • 使用Explorer或更好的工具在此目录中查找AspNetDiagnosticPack.msi
  • 运行(双击)AspNetDiagnosticPack.msi文件(这将强制安装此msi)
  • 我有一个问题
     <ItemGroup>
        <Reference Include="Microsoft.VisualStudio.Web.PageInspector.Loader">
          <HintPath>..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll</HintPath>
        </Reference>
      </ItemGroup>