[Mono-list] webservice HTTP 500

James Fitzsimons james.fitzsimons at gmail.com
Sun Jul 10 08:21:49 EDT 2005


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://galactus.ximian.com/pipermail/mono-list/attachments/20050710/be0f7236/attachment.bin


More information about the Mono-list mailing list