Right off, I'd say you need to change the word "Codebehind" to "Src" and see if that fixes it.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Fitzsimons Sent: Saturday, July 09, 2005 7:25 PM To: mono-list Subject: [Mono-list] webservice HTTP 500 Hi all, I am probably just been a bit dense (it is 1:15am ;-) but I can't get my really simple web service to work with mod_mono with the code split out to a code behind file. My CustomerSerivce.asmx file looks like this: <%@ WebService Language="C#" Codebehind="CustomerService.asmx.cs" Class="Services.CustomerService,Services" %> And my CustomerService.asmx.cs: // created on 10/07/2005 at 00:35 using System; using System.Web.Services; namespace Services { public class CustomerService : WebService { [WebMethod] public string GetCustomerName() { return "Bob"; } } } But when I navigate to http://localhost/services/CustomerService.asmx I get: Server error in '/services' application ________________________________________________________________________ Description: Error processing request. Error Message: HTTP 500. Stack Trace: System.TypeLoadException: Cannot load type 'Services.CustomerService,Services' in <0x00000> <unknown method> Any ideas? Cheers, James _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
