.Net Remoting Need Help

adshocker

Well-known member
Joined
Jun 30, 2007
Messages
180
Programming Experience
Beginner
Hi all,

I'm having some problems with .Net Remoting. I was following the instructions on these links,

http://msdn2.microsoft.com/en-us/library/txct33xt(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/ecc85927(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/y6dc64f2(VS.80).aspx

I've finished building the RemotableObject, Host and Client. But when I try to run the Client I get the ff: error.

.Config file 'Client.exe.config' cannot be read successfully due to exception 'System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.ConfigServer.RunParser(IConfigHandler factory, String fileName)
at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean skipSecurityStuff)
at System.Runtime.Remoting.RemotingConfigHandler.LoadConfigurationFromXmlFile(String filename)'.

I have checked the Client.exe.config file and I honestly don't know what the correct URL would be. In the sample it has the http://localhost:8989/RemotableObject.rem. I don't know why it has .rem for its extension.

Please help. Thanks.
 
The published object name can be any name you choose, it is configured by the server:
objectUri="RemotableType.rem"
(If you host the remoting object in IIS the uri requires .rem or .soap extension.)

I tested the sample and in client xml config had to change (in the form typeName, assemblyName) to include namespace:
type="RemotableType, RemotableType.RemotableType"
Attached the sample solution containing the three projects, it has multi-startup enabled so just have a look and press "play" and it should work.
 

Attachments

  • vbnet20-remot.zip
    26.6 KB · Views: 30
Thanks very much.
 
Back
Top