Error using VisualStudio addin
caos
Posts: 2
Hi
I've just downloaded the trial version and have tried running the profiler through Visual Studio (2005 with .NET3.0 on XP) but I get an error saying "Exception dispatching command: Object reference not set to an instance of an object".
Can anyone help?
Many thanks
Claire
I've just downloaded the trial version and have tried running the profiler through Visual Studio (2005 with .NET3.0 on XP) but I get an error saying "Exception dispatching command: Object reference not set to an instance of an object".
Can anyone help?
Many thanks
Claire
Comments
We have seen this exception quite a few times and I believe I have narrowed it down to a problem in the add-in when a solution has a desktop application and a web application project in it at the same time. Can you have a look at the following URL and tell us if the suggested workaround helps?
http://www.red-gate.com/support/kb/KB200709000151.htm
Thanks!
System.NullReferenceException: Object reference not set to an instance of an object.
at _2._1()
at _5._1(String )
at RedGate.Profiler.VSAddin.Connect.QueryStatus(String commandName, vsCommandStatusTextWanted neededText, vsCommandStatus& status, Object& commandText)
at Microsoft.VisualStudio.CommandBars._CommandBars.get_Item(Object Index)
at BuildAutoIncrementAddin.BuildAutoIncrementMain.CreateVcbToolBar()
at BuildAutoIncrementAddin.BuildAutoIncrementMain.OnConnection(Object application, ext_ConnectMode connectMode, Object addInInst, Array& custom)
This error does not happen without ANTS installed.
In consequence, any command invoked on ANTS results in either
1) Exception dispatching command: The method or operation is not implemented.
2) Exception dispatching command: Unspecified error
Other addins installed:
Enterprise Library Configuration Editor 3.0
EventToaster 1.0
Extensions for Windows WF
IndexedFind 1.0
Microsoft Visual Studio 2005 Team Suite - ENU Service Pack 1 (KB926601)
OnTime VS.NET 7.0
Security Update for Microsoft Visual Studio 2005 Team Suite - ENU (KB937061)
SourceOutliner 1.0
SuperDiff 1.0
VcCodeSnippets 1.0
Visual Assist X
ANTS Profiler
VSReactorAddin
This is similar, but I don't believe it's exactly the same issue. We know that the profiler add-in fails in the circumstances described in the KB article, but in your case, it looks like a Visual Studio malfunction because our add-in is running a rather innocuous query for the status on the toolbar when the add-in loads and Visual Studio is coming back with something incorrect.
I'll look into it a bit further and see if I can come up with some possible causes for this.
Can I send an updated add-in to your email address and see if that fixes the problem?
Exception dispatching command: The method or operation is not implemented.
at EnvDTE.Project.get_FileName()
at RedGate.Profiler.VSAddin.CodeModel.GetActiveProject()
at RedGate.Profiler.VSAddin.Controller.SetupApplicationDefinition(Project project)
at RedGate.Profiler.VSAddin.Controller.ProfileNamespaces(ArrayList namespaces, ProfilerType type)
at RedGate.Profiler.VSAddin.Controller.DispatchCommand(String command)
I have a solution with 11 projects, 4 unloaded. All C#, no webprojects.
If you need any testing to be done, let me know.