簡體   English   中英

在Azure(ASP.NET)中安裝新的Nuget程序包失敗

[英]Installing new Nuget packages failing in Azure (ASP.NET)

我已經通過Nuget安裝了一堆與SendGrid有關的軟件包。 在本地,這一切都完美無缺。 但是,一旦部署並運行,我將拋出以下異常:

Exception Thrown: System.IO.FileLoadException: Could not load file or assembly 'SendGrid.SmtpApi, Version=1.1.3.0, Culture=neutral, PublicKeyToken=55aa52d3c3c0d2b2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'SendGrid.SmtpApi, Version=1.1.3.0, Culture=neutral, PublicKeyToken=55aa52d3c3c0d2b2' at SendGrid.SendGridMessage..ctor() at seshpicker.Controllers.AccountController.<ForgotPassword>d__18.MoveNext() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

我相信這可能是因為新的Nuget Sendgrid軟件包可能未部署。 但是,我不知道它們在Azure中生活時應該去哪里。 我似乎也找不到所有其他軟件包的存儲位置。

在我的本地計算機上,它們存儲在與Visual Studio解決方案文件相同的目錄下的“包”文件夾中。 我還在構建中包括了參考。

有人有什么想法嗎?

解決了!

基本上,我的SendGrid.SmtpApi(1.3)版本比父依賴項要查找的版本新。

降級到提到的異常版本可以解決此問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM