Did you try: <%@ WebService Language="C#" Src="CustomerService.asmx.cs" Class="Services.CustomerService" %>
? Carl -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
