473,394 Members | 1,778 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,394 software developers and data experts.

remoting and placing DLLs in sub-directory

Hello!

I have a simple client/server plugin based architecture. I place all the
plugins in \plugins sub-directory on both, server and the client. Each DLL
has implemented two interfaces.. on for client side and other for server
side. On the server I dinamically load all the assemblies from that
sub-directory and register the objects that implement IBuddyPluginServerSide
as SAOs. On the client I do the same for those that implement
IBuddyPluginClientSide . I also Activate the server side SAO and pass it as
reference to the ClientSide object.

This is my method for registering SAOs on the server:

private void RegisterPlugins()
{
string dir = "plugins\\";

foreach(string file in new FilesEnumerator(dir, "*.dll"))
{
Assembly asm = Assembly.LoadFrom(dir + file);
foreach(Type t in asm.GetTypes())
{
if(MyLib.Tools.ImplementsInterface(t,
typeof(IBuddyPluginServerSide)))
{
IBuddyPluginCommon common =
(IBuddyPluginCommon)MyLib.Tools.InstantiateObject( asm,
typeof(IBuddyPluginCommon));

RemotingConfiguration.RegisterWellKnownServiceType (t,
common.GetWellKnownServerName(),
WellKnownObjectMode.Singleton );
}
}
}
}

All good... but when I make a first call to one of SAOs methods from the
client, I get the "plugin1.dll" FileNotFound exception on the server. When I
place the dll in server root, it works. So obviously, the server forgets,
that the assembly resides in the sub-directory and on the first call it
wants to find it in root. The server remembers the name of the plugin
though.. but it assumes that it resides in the root. How could I solve this?

And also.. did anyone figure out yet why the server is inaccessible when the
connection to the LAN/WAN drops even if client and server are on the same
machine?
I have the description of the problem/bug here:

http://www.david13.com/cases/DotNet/...Local-Machine/
Thank you very much!!

David
Nov 17 '05 #1
0 1104

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

Similar topics

0
by: Trokey | last post by:
Here's my setup: Component A: .NET exe acting as a .NET remoting server. The channel type is tcp. Component B: .NET assembly acting as a .NET remoting client with event handlers for server...
0
by: Henrik Nordgren | last post by:
Im trying to build a simple chat app... here is the code: server visual basic code:-------------------------------------------------------------------------------- Public Class ChatServer ...
2
by: matthew_glen_evans | last post by:
Hi there, Quick one about interfaces in c#. It seems that it is illegal to declare types within an interface. I was quite used to doing this in VB.net where the interface can define a...
0
by: Pushpendra | last post by:
Hi, I have created 2 dlls (Irefdata.dll, RefdataServer.dll) and one remoting service RefDataService.exe. Irefdata is ainterface and I have implemented this interface in refdataserver. I have...
9
by: Nak | last post by:
Hi there, I have been messing around with remoting in an attempt to create a "shared application" as mentioned in another thread by that name. I have created a singleton object just like the...
6
by: AMDRIT | last post by:
Hello folks, I appologize for the cross post, but I really need an answer on this: I do not think that I am seeing the whole picture here. I would like to create a windows service and a...
8
by: sandy82 | last post by:
I coded a simple example in c# In which their is a client and a server using a dll . I am confused on the Point that u have to use the .dll on both sides .Cant we have a solution of having a dll...
0
by: Jason | last post by:
Ok, for the life of me, I just don't understand what's going on. I want to use remoting to send messages from a windows service to a windows form app, but I just can't get it to work. So, here's...
3
by: JB | last post by:
Hi All, I've discovered a strange behaviour with Object parameters passed ByVal via remoting and I'm wondering if anybody could shed some light on this. In a non remoting function call, when...
0
by: ShaneN | last post by:
I'm working on a remoting application where the client only references interfaces for all wellknown objects. I currently have an object, Request being exposed: Imports System.Runtime.Remoting...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.