COMException when using "Profile Performance" in VS 2008

Code profiling for .NET Developers

Moderators: StephenC, Alex.Davies, AndrewH

COMException when using "Profile Performance" in VS 2008

Postby JPA » Thu Oct 15, 2009 10:19 am

Hi,

I can start the Performace Profiler without problems directly, but when I start it via "ANTS 5 -> Profile Performance" inside VS 2008, I get the following error:

---------------------------
Exception while performing Profile &Performance
---------------------------
System.Runtime.InteropServices.COMException (0x8000FFFF): Schwerwiegender Fehler (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
at EnvDTE.Project.get_ConfigurationManager()
at a.c(Project )
at RedGate.Profiler.AddIn.Commands.ProfileCommand.get_LaunchArguments()
at RedGate.Profiler.AddIn.Commands.ProfileCommand.RunCommand()
at RedGate.Profiler.AddIn.Five.Connect.Exec(String commandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled)

If you need further information, let me know.

Thanks!
JPA
 
Posts: 2
Joined: Thu Oct 15, 2009 9:53 am

Postby Chris.Allen » Fri Oct 16, 2009 11:18 am

Hmm, Catastrophic failure from the add-in.

Can you try replacing the existing addin dll with this please:

ftp://support.red-gate.com/Patches/ANTS ... .AddIn.dll
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby JPA » Fri Oct 16, 2009 11:46 am

Hi,

this didn't help, but I think I found the problem.
This error only occurs when the startup project isn't a C#-project but an exe file.
If I set a C# project as startup (with the exe as "start external progam" in the debug tab in the project properties) then the profiler works perfectly.

Most of the time I create libraries and for debugging I just add the application exe as project. Perhaps you should fix that in the profiler so it also works that way.
JPA
 
Posts: 2
Joined: Thu Oct 15, 2009 9:53 am

Postby Chris.Allen » Wed Oct 28, 2009 9:09 pm

Thanks for finding the solution. I will suggest this enhancement to our guys.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to ANTS Performance Profiler 5

Who is online

Users browsing this forum: No registered users and 1 guest