[Mono-list] webservice HTTP 500

James Fitzsimons james.fitzsimons at gmail.com
Sat Jul 9 20:25:15 EDT 2005

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
		public string GetCustomerName() { return "Bob"; }

But when I navigate to http://localhost/services/CustomerService.asmx I

Server error in '/services' application

Description: Error processing request. 

Error Message: HTTP 500. 

Stack Trace: 
System.TypeLoadException: Cannot load type
in <0x00000> <unknown method>

Any ideas?
-------------- 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/971c0681/attachment.bin

More information about the Mono-list mailing list