No context menu in VS2010

Oct 10, 2010 at 9:32 PM

Hi,

I've installed WSCF blue in VS2010 professional, running on Server 2008. I'm running it in a sandbox logged in as administrator, running VS as administrator makes no difference.

I am not running any other add-ins, it is enabled in the add-in menu and I tried toggling it. I have checked it is in the Help->About as well.

This is the output from your log file:

10-10-2010 22:18Entering OnDisconnection method.
10-10-2010 22:18Leaving OnDisconnection method.
10-10-2010 22:18A new instance of WSCF Connect class is created.
10-10-2010 22:18A new instance of WSCF Connect class is created.
10-10-2010 22:18Entering OnConnection method.
10-10-2010 22:18Entering OnConnection method.
10-10-2010 22:18Creating commands.
10-10-2010 22:18Creating commands.
10-10-2010 22:18System.ArgumentException: No item was found matching name "Web Item"Parameter name: name   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars.FindByName(String name, Boolean searchNestedPopups)   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars.get_Item(Object index)   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars._Marshaler.<>c__DisplayClass51.<get_Item>b__50()   at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars._Marshaler.get_Item(Object Index)   at Thinktecture.Tools.Web.Services.ContractFirst.Connect.OnConnection(Object application, ext_ConnectMode connectMode, Object addInInst, Array& custom)
10-10-2010 22:18System.ArgumentException: No item was found matching name "Web Item"Parameter name: name   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars.FindByName(String name, Boolean searchNestedPopups)   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars.get_Item(Object index)   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars._Marshaler.<>c__DisplayClass51.<get_Item>b__50()   at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)   at Microsoft.VisualStudio.PlatformUI.Automation.CommandBars._Marshaler.get_Item(Object Index)   at Thinktecture.Tools.Web.Services.ContractFirst.Connect.OnConnection(Object application, ext_ConnectMode connectMode, Object addInInst, Array& custom)
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18Paste Schema code menu item is added
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
10-10-2010 22:18Paste Schema code menu item is added
10-10-2010 22:18Leaving OnConnection method.
10-10-2010 22:18Leaving OnConnection method.
10-10-2010 22:18Entering OnDisconnection method.
10-10-2010 22:18Leaving OnDisconnection method.

 

Any help would be greatly appreciated! It looks to me like I don't have a particular menu enabled or something odd like that?

cheers,

Andrew

Developer
Oct 11, 2010 at 1:22 PM

Hi Andrew,

It is trying to add a menu item for web projects. Do the web project templates appear in the New Project dialog in Visual Studio? The duplicate entries in the log file is strange. It looks like two instances of the add-in are being created. Are you running from the installer or from compiled source code?

Cheers,

Alex.

Oct 11, 2010 at 8:46 PM

Hi Alex,

I've figured it out in the meantime, thanks for your help.

I do have web project templates in the New Project dialog, but didn't have Microsoft Visual Web Developer 2010 listed in Help->About (this is a forms/office tools piece of work). That set me on the right line as one of the other threads here suggested looking for that. Now that I've installed all the web side of things all is well. Not sure if you have the web side of things listed as a prerequisite somewhere? I had used WSCF in the past as part of windows services dev but had ASP.NET installed too, so hadn't thought about not having the Web 2010 stuff installed.

I'm running from the installer but had run it twice, and repaired as well, when trying to figure out what (wasn't) happening. I'll uninstall and re-install and see if that sorts it. Only one dialog pops up and the context menu doesn't have doubled up entries.

All I need to do now is figure out why the response from the PayPal API is all null, I can see from the WCF trace tools that the XML is coming back and it looks OK. I do have a suspicion that PayPal isn't validating their XML to their XSD as the elements aren't all in the same order as declared in the sequence... sigh... but I have not set the generated classes to decorate with order identifiers.

 

cheers,

Andrew

Developer
Oct 12, 2010 at 1:06 PM

Hi Andrew,

I'm glad you got it sorted out and thanks for reporting your findings. The feedback is very useful.

You should not have to install Visual Web Developer for WSCF.blue to work. I have made the code for adding menu items more defensive to cater for situations such as the one you ran into. This will be included in the next release.

I hope you get your integration with PayPal working too.

Cheers,

Alex.