Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.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
找不到包的编译库位置。。。在IIS上运行asp.net core 2发布的项目后_Asp.net_Asp.net Mvc_Iis_Asp.net Core_Publish - Fatal编程技术网

找不到包的编译库位置。。。在IIS上运行asp.net core 2发布的项目后

找不到包的编译库位置。。。在IIS上运行asp.net core 2发布的项目后,asp.net,asp.net-mvc,iis,asp.net-core,publish,Asp.net,Asp.net Mvc,Iis,Asp.net Core,Publish,在iis上运行我发布的项目(Asp.net core 2)后,出现以下错误: 找不到包“Microsoft.Win32.Registry”的编译库位置 我从nuget安装它。在iis上再次运行后,出现以下错误: 找不到包“System.Data.SqlClient”的编译库位置 我从nuget安装它,因此,在iis上再次运行我的项目后,会出现以下错误: 找不到包“System.Security.Cryptography.Xml”的编译库位置 这个过程还在继续 Web.config文件: <

在iis上运行我发布的项目(Asp.net core 2)后,出现以下错误:

找不到包“Microsoft.Win32.Registry”的编译库位置

我从nuget安装它。在iis上再次运行后,出现以下错误:

找不到包“System.Data.SqlClient”的编译库位置

我从nuget安装它,因此,在iis上再次运行我的项目后,会出现以下错误:

找不到包“System.Security.Cryptography.Xml”的编译库位置

这个过程还在继续

Web.config文件:

<?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <system.webServer>
    <handlers>
         <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
 <aspNetCore processPath="dotnet" arguments=".\LibraryProject.dll" stdoutLogEnabled="true" stdoutLogFile=".\log\stdout">
<environmentVariables>
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
    </system.webServer>
</configuration>
<!--ProjectGuid: b874d2d9-471b-494a-828c-257173c5a413-->


如何解决此问题?

请查看此网站。可能会帮助你@jcvegan谢谢,但我认为iis在授权操作中出现了错误。因为每次使用authorize时都会发生错误。登录后我找到了错误的原因。有没有办法解决这个问题?你能把任何代码放在授权失败的地方吗?