COMException when using "Profile Performance" in VS 2008
JPA
Posts: 3
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!
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!
Comments
Can you try replacing the existing addin dll with this please:
ftp://support.red-gate.com/Patches/ANTS ... .AddIn.dll
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.