[Mono-list] Simple web method always returns error 500 "Cannot cast from source type to destination type"

Peter Wolf p_wol@hotmail.com
Sat, 7 Feb 2004 15:20:21 -0500


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;
    }
}

Please help! Thanks!!!