ServicesResourcesConferences Our TeamWeblogsAboutContact
     
  

Developer Resources

  Architecture Briefings
  Articles
  Conversations
  Tools and Samples
  Books

PRB: System.Runtime.Remoting, or dependencies not found

Question

  • I am trying to run samples downloaded from the web or taken from an older book.
or
  • I'm currently running code that worked fine in previous versions of the Framework SDK.
Unfortunately, I get the following error message:

An unhandled exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll Additional information: Remoting configuration failed with the exception System.IO.FileNotFoundException: File or assembly name System.Runtime.Remoting, or one of its dependencies, was not found.

File name: "System.Runtime.Remoting" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(String assemblyString) at System.Runtime.Remoting.RemotingConfigInfo.LoadType(String typeName, String assemblyName) at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData)

Answer

In this case, you're specifying a channel like this in your configuration file (this worked in beta 2): <channel type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting">

Instead you should either use the "ref"-syntax and specify it as <channel ref="http"> or you have to specify the complete strong name of the target assembly if it's in the GAC (f.e. for all "standard" .NET Framework DLLs): <channel type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

The following channel refs are predefined:

  • "http"
  • "http client"
  • "http server"
  • "tcp"
  • "tcp client"
  • "tcp server"

and the following formatter refs:

  • "soap"
  • "binary"






 

© 2002-2006 by Thinktecture, Ingo Rammer and Christian Weyer. All rights reserved. | Contact | Impressum