System.Guid

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have a simple .NET 2.0 web service created with VS.NET 2005 with a single
web method with the following signature:

[WebMethod]
void HelloWorld(Guid parameter1);

When calling this method I receive the following error:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type,
HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)If I change the type of parameter1 to a simple type such as
string or int then the method works as expected. My operating system is
Windows 2003 Server R2 (Enterprise Edition) with all the latest patches.

I see several other people have run into this error. Does anyone have an
idea how to correct this?

Thanks,
Michael


.



Relevant Pages

  • SoapException - unusual behavior
    ... It uses web service to get data. ... HttpContext context, HttpRequest request, HttpResponse response, Boolean& ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: System.Guid
    ... issue serializing the value of what's supposed to be a guid on the client. ... How about if you change the signature to string, ... HttpContext context, HttpRequest request, HttpResponse response, Boolean& ... abortProcessing)If I change the type of parameter1 to a simple type such ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: System.Guid
    ... HttpContext context, HttpRequest request, HttpResponse response, Boolean& ... abortProcessing)If I change the type of parameter1 to a simple type such as ... string or int then the method works as expected. ... I do understand the Guid parameter is a platform-specific type. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: System.Guid
    ... web method with the following signature: ... HttpContext context, HttpRequest request, HttpResponse response, Boolean& ... abortProcessing)If I change the type of parameter1 to a simple type such ... parameter be of type string, and then parse out the Guid from the string. ...
    (microsoft.public.dotnet.framework.webservices)