Issue with MS Test as .NET 4 project

Hello,

I'm trying to use this:

http://www.red-gate.com/supportcenter/C ... 253710.htm

I'm trying to use this to profile a .NET 4 project, but I'm getting the error:

could ot load file or assembly: <path to DLL> or one of its dependencies. The assembly is built by a runtime newer version than the currently loaded runtime and cannot be loaded.

How do I get a .NET 4 process to profile correctly?

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hello,

    This is not a problem specific to simply profiling a .NET Process, it is because for some reason your profiling settings caused it to load up the .NET 2 Runtime and one of the assemblies in that gets loaded in needs .net 4 to run.

    If you follow the instructions in the article explicitly, you will launch the .NET 2 version of MS Test from C:\Programs\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe. You probably want to launch C:\Programs\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe as this is the .NET 4 version.
  • Oops, I thought I adjusted for that, but didn't realize. Thanks.
Sign In or Register to comment.