.NET Remoting can't activate wellknown service located in an assembly in subdirectory

trex92

New Member
I've been using .NET Remoting for a few years now in a WinForms app. I'm trying to refactor to move the server's remoteable class out of the .exe and into a .dll. When the assembly is located in the same dir as the .exe, all is fine. But when it is located in an immediate subdirectory, RemotingConfiguration.Configure throws exception: \[quote\] .Config file '(fullpath)' cannot be read successfully due to exception 'System.IO.FileNotFoundException: Could not load file or assembly '(assemblyname)' or one of its dependencies. The system cannot find the file specified. File name: '(assemblyname)'\[/quote\]My .exe has a .config with a probing privatePath entry for the subdirectory, which has been there all along and is needed for other parts of the app to work.In fact, for other reasons, the assembly in the subdirectory actually gets manually loaded by the .exe using Assembly.Load(fullpath) before the call to RemotingConfiguration.Configure(), so it should already be in process.Is what I'm trying to do possible or does the remoteable object have to be defined in the .exe's directory?Thanks,Jim
 
Back
Top