Can't find a parameter?

G

Guest

Hello,
I have developed an application to run on windows mobile 5.0 handheld units.
I have a hosting platform that runs in a .NET environment. The application
is written in C#. It interfaces with Siebel's CRM OnDemand System.
I exchange data with another server via SOAP requests via Web Services.
When I change the privleges of the account that requests data, I get an error.
I am writting data to an array, however I get the error:

SelectRecords() reported this exception: Exception has been thrown by the
target of an invocation. Inner Exception:
System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.ArgumentOutOfRangeException: startIndex cannot be larger
than length of string. Parameter name: startIndex at
OnDemandWS.OnDemandWS.ActivityWS_Select() in c:\Program
Files\MotoSFA\OnDemandWS\App_Code\OnDemandWS.cs:line 1185 --- End of inner
exception stack trace --- at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
WebServicesAdapter.Namespace.OnDemandWS.ActivityWS_Select() at
WebServicesAdapter.Namespace.ActivityWS_SelectScript.SelectRecords(Object
proxyObject, DataTable& results, Object[] parameters)

I get this on the logs of my hosting platform. There are errors on the
other side, but I cannot confirm that they correspond to this one on my
system.
Typically, there can be errors on the other side that don't affect my
downloading of data.
In other words, I request a record, if the account only has create access to
data, it is fine.
If it has admin access (read, write, create) then I get this error.
There is something generic about this error, that is why I am posting here.
I do not use the variable startIndex anywhere in my hosting app or the
client app. I don't use it in my custom web services.
Siebel has confirmed there is no such parameter anywhere in their system.
So my question is, does anyone know if .NET, C#, or Windows server 2003 use
this parameter? Has anyone ever seen an error like this?
Please let me know,
Thank you in advance!
Constantine
 
B

Barry Kelly

Constantine said:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.ArgumentOutOfRangeException: startIndex cannot be larger
than length of string. Parameter name: startIndex at
OnDemandWS.OnDemandWS.ActivityWS_Select() in
c:\Program Files\MotoSFA\OnDemandWS\App_Code\OnDemandWS.cs:line 1185
--- End of inner
exception stack trace
There is something generic about this error, that is why I am posting here.
I do not use the variable startIndex anywhere in my hosting app or the
client app. I don't use it in my custom web services.

My psychic powers tell me you have a call to string.Substring() on line
1185 of OnDemandWS.cs.

Look up the documentation for string.Substring() and examine its
parameters.

-- Barry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top