very strange problem about Net.Remoting and System.IO.FileNotFoundException

D

Daylor

hi.
im create object and pass it to second appDomain. (same application).
the object in marshal byRef.

now, after the object is created in the server.
when pass it to the client.

an exception is throw :
------------------------------------------------------------------------
System.IO.FileNotFoundException
File or assembly name Client , or one of its dependencies, was not found

---------------------------------------------------
now , the client is the where the exception occurs !!

try to find some info about it ,i saw somthing here:
go to the "Points of Interest" section
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1284&lngWId=10


any one can help , how to solve this problem ?
 
D

Daylor

1.im creating the object with assembly.load and createInstance
the first appdomain (and his assembly) dont reference the Dervied Object
only the base.

2.i solve half of the problem ,when coping the Dervied object assembly to
the first appdomain folder ("server" folder)

-------------------------------------------
but now ,i have other problem
i get :A first chance exception of type 'System.InvalidCastException'
occurred in client.dll
Additional information: Specified cast is not valid

------------------------------------
not the client assembly is excactly the same as in the server.
what's wrong here ?

(and how can i solve the first problem,without copying the client.dll to the
server, i tried to set the path to the reference path-didnt work )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top