简体   繁体   中英

Error Debugging MVC 4 web application on IIS

I am using visual studio 2010 and have installed mvc 4. When debugging using the vs development server the sample web application works perfectly but if i try to debug with IIS i get the following error:

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

I do not have any references to quality tools in web.config, have tried to add them but still did not work. I also tried o use the aspnet_regiis tool just in case.

i have also tried to target different x64 or x86 platform but it did not make a difference.

My dev machine is windows 7 64 bit

You can find an answer here

This error is caused by mixed development environment. That means you have build the service with .NET 4 at he x64 machine and somebody else is trying to host the service at his x86 development machine

If it doesn't work, check that the target framework is 4.0

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