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
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
