All pastes #17391 Raw Edit

Miscellany

public text v1 · immutable
#17391 ·published 2005-07-10 20:46 UTC
rendered paste body
Hello.asmx

<%@ WebService Language="C#" Class="Hello,Hello" %>

Hello.cs

// created on 10/07/2005 at 00:35
using System;
using System.Web.Services;


[WebService(Namespace="temprui.org", Description="A hello world service")]
public class Hello : WebService
{
	[WebMethod]
	public string HelloWorld() { return "Hello world!"; }
}


Exception

Server error in '/services' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.TypeLoadException: Cannot load type 'Hello,Hello'
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType (System.Reflection.Module,string,bool,bool)
in <0x0003b> System.Reflection.Assembly:GetType (System.String name, Boolean throwOnError, Boolean ignoreCase)
in <0x00031> System.Reflection.Assembly:GetType (System.String name, Boolean throwOnError)
in <0x00456> System.Web.Compilation.WebServiceCompiler:GetCompiledType ()
in <0x0003a> System.Web.Compilation.WebServiceCompiler:CompileIntoType (System.Web.UI.SimpleWebHandlerParser wService)
in <0x0005f> System.Web.UI.WebServiceParser:GetCompiledType (System.String inputFile, System.Web.HttpContext context)
in <0x0007b> System.Web.Services.Protocols.WebServiceHandlerFactory:GetHandler (System.Web.HttpContext context, System.String verb, System.String url, System.String filePath)
in <0x003de> System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext context, System.String type, System.String file, System.String path)
in <0x000bd> System.Web.HttpApplication+CreateHandlerState:Execute ()
in <0x000c9> System.Web.HttpApplication+StateMachine:ExecuteState (IStateHandler state, System.Boolean readysync)