I have a runtime error which is occurring only when I run my web application in the Compute Emulator:
Could not load file or assembly 'Microsoft.VisualStudio.Profiler' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I do not get this error when running the web application normally in IIS.
SDK version: 2.0
Where do I start to fix this problem?
I would love an explanation for this.
I had to manually delete Microsoft.VisualStudio.Profiler.dll
from my bin
directory. I don't know how it got there and there was nothing referencing it (I used NDepend to check this). Once removed, I stopped getting the error. Cleaning didn't remove the dll.