Red Gate forums :: View topic - Issue with MS Test as .NET 4 project
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 6
ANTS Performance Profiler 6 forum

Issue with MS Test as .NET 4 project

Search in ANTS Performance Profiler 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
bmains



Joined: 13 Dec 2010
Posts: 10

PostPosted: Wed Jan 12, 2011 5:50 pm    Post subject: Issue with MS Test as .NET 4 project Reply with quote

Hello,

I'm trying to use this:

http://www.red-gate.com/supportcenter/Content?p=ANTS%20Performance%20Profiler&c=ANTS_Performance_Profiler/help/6.1/app_mstest.htm&toc=ANTS_Performance_Profiler/help/6.1/toc1253710.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?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Thu Jan 13, 2011 6:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
bmains



Joined: 13 Dec 2010
Posts: 10

PostPosted: Thu Jan 13, 2011 9:35 pm    Post subject: Reply with quote

Oops, I thought I adjusted for that, but didn't realize. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group