« Previous Next »

Thread: ModuleServiceProxy Invoke raises exception: Parameter name: serviceName ---> System.ArgumentNullException: Value cannot be null.

Last post 09-28-2009 7:18 AM by FDL. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 09-24-2009, 8:01 AM

    • FDL
    • Not Ranked
    • Joined on 09-24-2009, 7:54 AM
    • Posts 4

    ModuleServiceProxy Invoke raises exception: Parameter name: serviceName ---> System.ArgumentNullException: Value cannot be null.

    Hi there. my first post:

    I am building a module in C#. I found out that when i want to configure it from another server, it all crashes. I found out that i should use a ModuleServiceProxy instance and a ModuleService instance.

    When I open up the module interface in the management console, it crashes with the exception:
    Parameter name: serviceName ---> System.ArgumentNullException: Value cannot be null.

    What could this be? should be something simple, because google gives me nothing.
    I have no clue of where to specify this serviceName, let alone what the value should be.

    Bit of stacktrace:

    at Microsoft.Web.Management.Client.SharedMemoryChannel.InvokeInternal(String serviceName, String methodName, Object[] parameters)
    --- End of inner exception stack trace ---
    at Microsoft.Web.Management.Client.SharedMemoryChannel.MTAHelper.Execute(String serviceName, String methodName, Object[] parameters)
    at Microsoft.Web.Management.Client.ModuleServiceProxy.Invoke(String methodName, Object[] parameters)

    Thanks in advance

    Frank
  • 09-28-2009, 5:20 AM In reply to

    • FDL
    • Not Ranked
    • Joined on 09-24-2009, 7:54 AM
    • Posts 4

    Re: ModuleServiceProxy Invoke raises exception: Parameter name: serviceName ---> System.ArgumentNullException: Value cannot be null.

    Nobody ? Does anyone need more information to help me?
  • 09-28-2009, 7:18 AM In reply to

    • FDL
    • Not Ranked
    • Joined on 09-24-2009, 7:54 AM
    • Posts 4

    Re: ModuleServiceProxy Invoke raises exception: Parameter name: serviceName ---> System.ArgumentNullException: Value cannot be null.

    Nevermind, it was something simple indeed.

    http://learn.iis.net/page.aspx/441/understanding-ui-extension-authoring/
    gave me the answer: In my module provider, the ServiceType returned null, which i found in another example. it now returns the type of the module service
Page 1 of 1 (3 items)
Microsoft Communities