![](/img/trans.png)
[英]Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[英]Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
我已將我的應用程序上傳到 IIS 服務器(在本地工作正常),並收到以下錯誤
Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
我的 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" />
我的 packages.config 看起來像
<package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net472" />
當我檢查我的 dll 的版本時,它顯示相同,即 4.1.0,我不知道為什么會出現上述錯誤
Go 到File Explorer
導航到項目bin
文件夾。 刪除bin
文件夾中的所有文件,然后嘗試Rebuilding
整個solution
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.