![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am trying to build and run the Remoting Sample from MSDN. Everything compiles. The Listener appears to run. The Client throws this RemotingException: A first chance exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll RemotingException.Message Cannot load type 'RemotableType, RemotableType'. RemotingException.StackTrace Server stack trace: at System.Runtime.Remoting.RemotingConfigHandler.Remo tingConfigInfo.LoadType(String typeName, String assemblyName) at System.Runtime.Remoting.RemotingConfigHandler.Remo tingConfigInfo.GetServerTypeForUri(String URI) at System.Runtime.Remoting.RemotingConfigHandler.GetS erverTypeForUri(String URI) at System.Runtime.Remoting.RemotingServices.GetServer TypeForUri(String URI) at System.Runtime.Remoting.Channels.SoapServerFormatt erSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type) at RemotableType.RemotableType.StringMethod() at Client.Client.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\RhsRemotingTest\Client\Client\Client .vb:line 13 Any ideas? Bill |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Nonsense. Remoting is extraordinarily easy. It's insane how easy it is. Without seeing your code there's no way to tell what you're doing wrong. Is your remote class inheriting MarshalByRefObject, did you create a simple Exe host or are you using IIS... lots of questions. Is the remote on a different machine, is it firewalled? I'd forget using a "sample" and create your own starting point by hand. You'll learn a lot more. http://www.thinktecture.com/Resources/RemotingFAQ/default.html -- -C. Moya www.cmoya.com |
#6
| |||
| |||
|
|
Hello, I am trying to build and run the Remoting Sample from MSDN. Everything compiles. The Listener appears to run. The Client throws this RemotingException: |
#7
| |||
| |||
|
|
Nonsense. Remoting is extraordinarily easy. It's insane how easy it is. Without seeing your code there's no way to tell what you're doing wrong. Is your remote class inheriting MarshalByRefObject, did you create a simple Exe host or are you using IIS... lots of questions. Is the remote on a different machine, is it firewalled? I'd forget using a "sample" and create your own starting point by hand. You'll learn a lot more. http://www.thinktecture.com/Resources/RemotingFAQ/default.html -- -C. Moya www.cmoya.com |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
I am using my own process. The remote component is not in the GAC. I got rid of 'RemotingConfiguration.Configure()' and am getting further. I am starting over and making my own (component,server,client) sample. I will repost new problems. Bill |
#10
| |||
| |||
|
|
Hello, I am trying to build and run the Remoting Sample from MSDN. Everything compiles. The Listener appears to run. The Client throws this RemotingException: A first chance exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll RemotingException.Message Cannot load type 'RemotableType, RemotableType'. RemotingException.StackTrace Server stack trace: at System.Runtime.Remoting.RemotingConfigHandler.Remo tingConfigInfo.LoadType(String typeName, String assemblyName) at System.Runtime.Remoting.RemotingConfigHandler.Remo tingConfigInfo.GetServerTypeForUri(String URI) at System.Runtime.Remoting.RemotingConfigHandler.GetS erverTypeForUri(String URI) at System.Runtime.Remoting.RemotingServices.GetServer TypeForUri(String URI) at System.Runtime.Remoting.Channels.SoapServerFormatt erSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type) at RemotableType.RemotableType.StringMethod() at Client.Client.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\RhsRemotingTest\Client\Client\Client .vb:line 13 Any ideas? Bill |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |