Parameter Is Incorrect Exception

Feb 9, 2011 at 11:54 AM

Hi,

I have wscf.blue installed on vs 2010 which also has the p&p service factory installed and it seems as if there is a conflict somewhere as whenever I try to access any of the wscf menu items, I get a System.ArgumentException: The parameter is incorrect message box.

I turned on logging and saw that at startup I got the following messages in the log:-

2-09-2011 11:39
A new instance of WSCF Connect class is created.

2-09-2011 11:39
Entering OnConnection method.

2-09-2011 11:39
Creating commands.

2-09-2011 11:39
A Command with that name already exists.

2-09-2011 11:39
A Command with that name already exists.

etc

The wscf menu was then disabled, but I then turned off logging, loaded vs, then turned it back on again (so that the menus were enabled again I could trap the exception in the log this time) and got pretty much the same as the message box:-

2-09-2011 11:44
Entering Exec method.

2-09-2011 11:44
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at EnvDTE.Properties.Item(Object index)
   at Thinktecture.Tools.Web.Services.ContractFirst.VisualStudioProject.get_AssemblyNamespace()
   at Thinktecture.Tools.Web.Services.ContractFirst.Connect.ProcessXsdCodeGenerationRequest()

As a control, I started vs without the service factory loaded and wscf menu items and resulting dialogues appeared as normal.

So, is this a known issue and is there a workaround?

Cheers

Dan

 

Developer
Feb 16, 2011 at 2:34 PM

Hi Dan,

Can you please test this in the new V1.0.11 update?

http://wscfblue.codeplex.com/releases/view/61072

I suspect that the WSSF project does not have some project properties that are normally present. If that is actually the problem it should be fixed by the update.

Cheers,

Alex.

Feb 16, 2011 at 4:38 PM

Hi Alex,

The update worked, thanks! The dialogues open as normal in my WSSF solution :)

Cheers
Dan