In my Visual Studio 2010 add-in, the Exec method of the IDTCommandTarget interface stops triggering (on the relevant menu click) when I add the following line of code to the Exec method:
GwebSearchClient client = new GwebSearchClient("www.google.com");
On removing the above line, the Exec method gets called as expected. I'm using the google-api-for-dotnet and have (obviously) added the GoogleSearchAPI.dll as a reference to the add-in.
If anyone can help, thanks.