Microsoft Developer Network > Forums Home > Windows Networking Development Forums > Windows Web Services API > E_INVALIDARG - The count for parameter description is 4111 (0x100F) while parameterDescription is NULL on WS_OPERATION_DESCRIPTION
Ask a questionAsk a question
 

AnswerE_INVALIDARG - The count for parameter description is 4111 (0x100F) while parameterDescription is NULL on WS_OPERATION_DESCRIPTION

  • Monday, August 10, 2009 7:49 AMMR07 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,
    I'm trying to run the sample ICalculator project to connect a Cpp client to a WCF service. I get an E_INVALIDARG error when I try to invoke an operation. On getting the error string it shows: The count for parameter description is 4111 (0x100F) while parameterDescription is NULL on WS_OPERATION_DESCRIPTION.

    Here is the operation call and the parameters that are getting passed:

    double
    n1 =14.67, n2=56.57, MultiplyResult;

     

    hr = basicHttpBindingEndpoint_Multiply( serviceProxy, n1, n2, &MultiplyResult, heap, NULL, 0,NULL,error);

     

    I looked at another thread in the forum where the suggestion was to regenerate the proxy classes. I did this by getting the wsdl and xsd using svcutil and then ran wsutil. It all compiled fine, but again on running the client, I get the same E_INVALID_ARG error.

    Any thoughts on what might be wrong? I'm running this on a Windows XP 64-bit SP2 machine. I am hosting the WCF Service in a ConsoleApp with the endpoint configured as:

    <

     

    endpoint name="basicHttpBindingEndpoint" address="http://localhost:8901/Demo1CalcService"

     

     

    contract="Microsoft.ServiceModel.Samples.ICalculator"

     

     

    binding="basicHttpBinding"

     

     

    bindingConfiguration ="basicHttpConfig">

Answers

  • Tuesday, August 11, 2009 10:07 PMVandana Gummuluru [MSFT]AnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Did you try enable tracing to see which call is calling the INVALIDARG to be returned?
    Which version of wsutil do you have? It might be that you have the outdated version - you can get the latest version by installing the latest WinSDK (RC version from msdn).

    Can you also paste/attach the files generated by wsutil?

All Replies

  • Tuesday, August 11, 2009 10:07 PMVandana Gummuluru [MSFT]AnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Did you try enable tracing to see which call is calling the INVALIDARG to be returned?
    Which version of wsutil do you have? It might be that you have the outdated version - you can get the latest version by installing the latest WinSDK (RC version from msdn).

    Can you also paste/attach the files generated by wsutil?
  • Thursday, August 13, 2009 9:48 PMNikola Dudar [MSFT]MSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    MR07, there is nothing wrong with your call. Vandana is most likely right about the root cause of the issue. You may have an older version of wsutil.exe. The final version of Windows 7 SDK has been released the last week. See this post for more details: http://blogs.msdn.com/windowssdk/archive/2009/08/07/released-windows-sdk-for-windows-7-and-net-framework-3-5-sp1.aspx. Try that version of wsutil.exe. Note, that if you want to test on WinXP with the dev tools from the final build of Win7 SDK, you will need to use the final version of WWSAPI for Windows XP. We have not released this version yet. It will be available later this year.

    Thanks,
    Nikola


    Nikola Dudar is the Program Manager for Windows Web Services API team. This post is provided "AS IS" with no warranties, and confer no rights. Use of any samples is subject to the terms specified at http://www.microsoft.com/ info/cpyright.htm