Hi guys,
Working on some .NET remoting samples and got stuck with an error,detailed below:
System.Net.WebException: The remote server returned an error: (405) Method Not A
llowed.
Server stack trace:
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessRespo
nseException(WebException webException, HttpWebResponse& response)
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessa
ge(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransp
ortHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessag
e(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
Msg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
ta, Int32 type)
at RemotableObject.MyObject.Message()
at ClientProgram.Client.Main() in C:\Documents and Settings\Benjamin\My Docum
ents\Visual Studio 2005\Projects\ClientProgram\ClientProgram\Client.cs:line 28
My remoting sample worked fine with a simple remote object method, but when changed that method to do something different,executing the Client side ended with the error above.Not sure, but I think it is something to do with IIS security policy?!
I am calling the remote object on a local machine using http channel and a singleton mode.
Does anyone have a suggestion, idea where to start from,what to check?No useful info could be find on msdn,so please give me at least some point to start as I would like to solve this issue.
Thanks for your help
Ben