473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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...1284&lngWId=10
any one can help , how to solve this problem ?
Nov 20 '05 #1
1 1398
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 )


"Daylor" <ro******@hotmail.com> wrote in message
news:br**********@news2.netvision.net.il...
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...1284&lngWId=10

any one can help , how to solve this problem ?

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: anders | last post by:
Hi! I have a config file that looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown mode="SingleCall"...
0
by: Simon Stewart \(C# MVP\) | last post by:
Hi Our scenario is: Various business objects on a server using interfaced-based remoting being called by a thick Windows client - all written in .NET 1.1. Objects are running under a domain...
2
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
1
by: googlegroups | last post by:
We have an application that is run in many timezones and uses remoting to access the DB. I have one screen that will only save if the user is in the same timezone as the server. I can reproduce...
5
by: Patrick Dickey | last post by:
Hello, All! I'm modifying some source code that I downloaded from Planet-source-code a while back, and have a question about Try Catch statements. Basically, I'm wondering if I can do a Try with...
9
by: Gustaf | last post by:
I'm confused about structured error handling. The following piece of code is a simplification of a class library I'm working on. It works, and it does what I want, but I'm still not convinced that...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
4
by: Rich | last post by:
Can anyone suggest a good (current) tutorial on how to do basic remoting with C# (2005 express edition)?
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.