[Mono-list] webservice HTTP 500
Carl Olsen
carl at carl-olsen.com
Sun Jul 10 09:20:28 EDT 2005
Did you try:
<%@ WebService Language="C#" Src="CustomerService.asmx.cs"
Class="Services.CustomerService" %>
?
Carl
-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of James Fitzsimons
Sent: Sunday, July 10, 2005 7:22 AM
To: mono-list
Subject: Re: [Mono-list] webservice HTTP 500
Humm, still no luck. I've tried to make it even more simple.
My .asmx now looks like this:
<%@ WebService Language="C#" Class="Hello,Hello" %>
My Hello.cs code behind looks like this:
using System;
using System.Web.Services;
[WebService(Namespace="http://www.temprui.org", Description="A hello
world service")]
public class Hello : WebService
{
[WebMethod]
public string HelloWorld() { return "Hello world!"; }
}
Compiled like this:
mcs -target:library -out:Hello.dll Hello.cs -r:System.Web.Services.dll
And I still get the System.TypeLoadException: Cannot load type
exception. I get this with mod_mono and xsp2.
Works perfectly if I move the C# code into the asmx file.
Am I being particularly stupid?
James
More information about the Mono-list
mailing list