[英]Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
I had uploaded my application in IIS server(is working fine on local), and got the below error我已将我的应用程序上传到 IIS 服务器(在本地工作正常),并收到以下错误
Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
my web.config looks like我的 web.config 看起来像
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
my packages.config looks like我的 packages.config 看起来像
<package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net472" />
and when I check the version of my dll, it shows the same ie 4.1.0, I don't know why I am getting the above error当我检查我的 dll 的版本时,它显示相同,即 4.1.0,我不知道为什么会出现上述错误
Go to File Explorer
navigate to the project bin
folder. Go 到File Explorer
导航到项目bin
文件夹。 Delete all files in bin
folder and then try Rebuilding
the whole solution
删除bin
文件夹中的所有文件,然后尝试Rebuilding
整个solution
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.