[Mono-dev] Help with xsp
Neale Ferguson
NealeFerguson at verizon.net
Wed Sep 18 21:14:02 UTC 2013
Thanks Robert.
Using --debug shows:
at System.Web.Services.Description.MessageCollection.get_Item (Int32
index) [0x00019] in
/home/BUILD/mono-3.2.3/mcs/class/System.Web.Services/System.Web.Services.Des
cription/MessageCollection.cs:50
Which corresponds to the throw below. Just out of curiosity why does add
subtract one from the Count in the Add method?
public Message this [int index] {
get {
if (index < 0 || index > Count)
throw new
ArgumentOutOfRangeException ();
return (Message) List [index];
}
set { List [index] = value; }
}
public Message this [string name] {
get { return this [IndexOf ((Message) Table
[name])]; }
}
#endregion // Properties
#region Methods
public int Add (Message message)
{
Insert (Count, message);
return (Count - 1);
}
On 9/18/13 5:08 AM, "Robert Jordan" <robertj at gmx.net> wrote:
> Neale,
>
> On 18.09.2013 00:19, Neale Ferguson wrote:
>> I had a webservice that was working fine. I duplicated a routine - same name
>> but with different parameters which requires the MessageName attribute. So
>> for the duplicated routine which originally just had:
>> [WebMethod (Description="Process VMARCH QUERY TAPES ALL
>> command")]
>> I changed it to
>> [WebMethod (Description="Process VMARCH QUERY TAPES ALL
>> command",
>> MessageName="vmaQryTapesAll")]
>>
>> Pointed browser to: http://localhost:9000/webservice.asmx and now get:
>>
>> System.ArgumentOutOfRangeException
>> Argument is out of range.
>>
>> Is there some way to get more informative messages from xsp to get it to
>> tell me exactly what it's choking on? I can invoke the webmethods directly
>> on the browser but it's just this bit that is giving me grief.
>
> The Web Service overview and test page is generated by
> $prefix/etc/mono/x.x/DefaultWsdlHelpGenerator.aspx,
> where x.x is the .NET version.
>
> It looks like the exception is thrown when Page_Load of this
> ASPX page is invoking WebServicesInteroperability.CheckConformance.
>
> That's where I would start looking for issue with overloaded
> WebMethods following back the stack trace.
>
> Try to get line numbers with
>
> MONO_OPTIONS=--debug xsp ...
>
> Robert
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list