Type Not Found

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have been trying to get a project using SAO, interfaces and a factory
design as suggested by Ingo Rammer in his advanced .net remoting book.

The remoting error I am getting is Type Not Found when I try and load
an object.

The interfaces are loaded into their own project and compiled as
elantis_Interfaces.dll and have been copied to the server directory and
referenced in the client project.

The Server object is compiled to elantis_BUS.dll and contains the
classes for the remote object and the remote factory.

Client config file

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="0">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
<client>
<wellknown type="elantis_Interfaces.ICountry_RF,
elantis_Interfaces" url="tcp://server:8001/ICountry_RF"/>
</client>
</application>
</system.runtime.remoting>
</configuration>


Server Config File

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="SingleCall"
type="type=elantis.BUS.FACCountry, elantis_BUS"
objectUri="ICountry_RF"/>
</service>
<channels>
<channel ref="tcp" port="8001">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
<customErrors mode="OFF"></customErrors>
</system.runtime.remoting>
</configuration>

Any help with this could put a smile back on the face of a really
disheartened programmer.

Thanks

.



Relevant Pages

  • Help!!! Config files
    ... I have a business objects dll on my server containing ... I have created a config file to "advertise each of the ... On the client side I have created a config file ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: .Net Remoting impass. Please help!
    ... > "An unhandled exception of type> 'System.Runtime.Serialization.SerializationException' occurred in> mscorlib.dll ... > And here's a copy of the client's config file:> ... Only thing is that I'm passing a> reference of the client to the server object in order to later on be able> to ... the application is running both> the server and the client on the same machine for now so it shouldn't have> anything to do with the network. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: cannot call non-public or static methods remotely
    ... > When the client starts and the user wants to write to database or files to ... > he can do that only when a service is running on the server with a ... > Now I have a config file when I try to connect it gives me this error. ... > Public Function GetSetting(ByVal Key As String) As String ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Notes connector
    ... notes client has been installed. ... >>I can connect to the Notes server because the Notes client that is required ... >>by the connector is installed on the connector server and when you open the ... >>Failure to locate DefltPseudoDomain in config file ...
    (microsoft.public.exchange.admin)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)