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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to