[Mono-list] webservice HTTP 500
Carl Olsen
carl at carl-olsen.com
Sat Jul 9 21:51:23 EDT 2005
Right off, I'd say you need to change the word "Codebehind" to "Src" and see
if that fixes it.
-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] 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
More information about the Mono-list
mailing list