all groups > dotnet remoting > july 2006 >
You're in the

dotnet remoting

group:

Remoting using Consol Application Client and Consol Listener


Remoting using Consol Application Client and Consol Listener Prateek
7/19/2006 2:56:00 AM
dotnet remoting: Hi,

I am developing a remoting service which is accessed by a client
application using remoting. In doing so, is gives me an error called
"Cannot load type <Type Name> <Assembly Name>"

Following things I am doing in order to developed a remoting service

1 - Developed a dll called Remotable.dll which is a type deployed on
server
2 - Developed a consol listener which host this remotable type and
listen for the client required on the http channel and on port 8002
3 - Developed a consol client application which takes the URL of the
server and try to run a method of the remotable type hosted on the
server.

Now at point 3, I am getting and error "Cannot load type <Type Name>
<Assembly Name>"

Does any one have any ideas?

Prateek
Re: Remoting using Consol Application Client and Consol Listener Prateek
7/19/2006 6:59:09 AM
In order to simplify, I have copied the Remotable.dll in the client as
well such that client.exe and remotable.dll remains in the same
directory.

still its not wworking...


[quoted text, click to view]
Re: Remoting using Consol Application Client and Consol Listener Phill W.
7/19/2006 12:58:09 PM
[quoted text, click to view]

In order to create the proxy (to access the Remoted object), the client
process has to "know" some things about the Remoted class. In my
installation, that means deploying a /copy/ of the Assembly that defines
the Remoted class to a directory from which the client process can
access (i.e. load) it.


There's another way involing the use of Interfaces but, AFAIK, it still
involves deploying something client-side.

HTH,
Re: Remoting using Consol Application Client and Consol Listener Phill W.
7/20/2006 1:25:08 PM
Returning to your original Exception ...

"Cannot load type <Type Name> <Assembly Name>"

.... at what point is this being thrown?

Have a look at the Exception's Stack Trace and, if it includes the word
"Rethrown", then the problem's at the server end, not the client.

Is your Remotable assembly loaded into the Global Assembly Cache on the
server machine? If not, I'm not sure where you'd need to put it for
your "console listener" application to find it.

HTH,
Phill W.

[quoted text, click to view]
AddThis Social Bookmark Button