简体   繁体   中英

Could not load file or assembly 'Microsoft.VisualStudio.DebuggerVisualizers, Version=9.0.0.0,

I have an MVC website hosted in Azure Websites, that when run locally, works great.

However, when I publish to Azure Websites, I get the error message:

Could not load file or assembly 'Microsoft.VisualStudio.DebuggerVisualizers, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Doing some research on this type of error, I see that it could possibly be related to either (a) referencing an incorrect version locally than one that is installed on Azure, or (b) a DLL is referencing Microsoft.VisualStudio.DebuggerVisualizers as a dependency.

My issue is that I have no idea how to debug this. If the issue is caused by (a), how can I tell? If the issue is caused by (b) how ca Microsoft.VisualStudio.DebuggerVisualizers ?

I've been struggling with this for too many hours now, and googling doesn't seem to lend much help.

Has anyone encountered this error before?

UPDATE

Screenshot of my References folder. Nothing out of the ordinary in my opinion, but clearly something is going on. 在此处输入图片说明

This was a weird one, and I'm still not sure of the actually reason.

I ended out completely deleting the website from Azure, and republishing, and it works fine. This was an ok solution for my case because my website was in its infancy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM