[Mono-list] Simple web method always returns error 500 "Cannot
cast from source type to destination type"
Gonzalo Paniagua Javier
gonzalo@ximian.com
Tue, 10 Feb 2004 12:40:06 +0100
El sáb, 07-02-2004 a las 21:18, Peter Wolf escribió:
> Hi .NET people.
>
> I have created a simple web method just to test the webservice the mono 0.3
> It's compiled OK but the method returns the following:
>
> The remote server returned an error: (500) Internal Server Error. Cannot
> cast from source type to destination type
>
> here is my code (test.asmx)
>
> <%@ WebService Language="C#" class="Test"%>
> using System;
> using System.Web.Services;
>
> public class Test
> {
> [WebMethod]
> public int test()
> {
> return 0;
> }
> }
Lluis already fixed this.
-Gonzalo