[Mono-list] Web service problem - xsp2

Tomek Soroka tomek_mono at possible.pl
Tue Aug 1 15:33:06 EDT 2006


Hi!

I'm trying run webservice written in vs 2005 under mono. (xsp2)

I got such error message:

System.InvalidCastException: Cannot cast from source type to destination type.
  at System.Web.Services.Configuration.WSConfig.get_Instance () [0x00000] 
  at System.Web.Services.Configuration.WSConfig.IsSupported (WSProtocol proto) [0x00000] 
  at System.Web.Services.Description.ServiceDescriptionReflector.Reflect (System.Type type, System.String url) [0x00000] 
  at System.Web.Services.Protocols.SoapDocumentationHandler.GetDescriptions () [0x00000] 
  at System.Web.Services.Protocols.SoapDocumentationHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] 
  at System.Web.Services.Protocols.SessionWrapperHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] 
  at System.Web.HttpApplication+<Pipeline>__2.MoveNext () [0x00000] 


i user

xsp 1.1.16
mono 1.1.16


there is no difference if ws is compiled under mono

gmcs /target:library App_Code/service.cs  -r:System.Web.Services

or published from vs2005


service.cs source file


using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

public class service : System.Web.Services.WebService
{
    public service () {

        //Uncomment the following line if using designed components
        //InitializeComponent();
    }

    [WebMethod]

    public string HelloWorld() {
        return "Hello World";
    }

}

and

service.asmx

<%@ WebService Language="C#" CodeBehind="~/App_Code/service.cs" 
Class="service" %>


has anyone any suggestions what i'm doing wrong?


best!
Tomek




More information about the Mono-list mailing list