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

Accessing running Assembly

Hi all,

I'm wondering if it is possible in C# ( + Reflection ) to do something
like this :

Assume that a Server.exe ( which is a .Net assembly, let's say
WindowsApplication ) is running on th PC.
>From a Client.exe, Load the Server.exe assembly THAT IS RUNNING. I mean
without creating a new instance of Server.exe. And then Search for an
interface of the Server.exe and call of method of it.

In fact something like we're doing in C++ with an RPC server running.

Is it possible to access to a running assembly without creating a new
instance ?

Thanks in advance.
GizMo.

Aug 4 '06 #1
3 1592
Hello Gizmo,

Remoting is the new RPC.

-Boo
Hi all,

I'm wondering if it is possible in C# ( + Reflection ) to do something
like this :

Assume that a Server.exe ( which is a .Net assembly, let's say
WindowsApplication ) is running on th PC.
>From a Client.exe, Load the Server.exe assembly THAT IS RUNNING. I
mean
without creating a new instance of Server.exe. And then Search for an
interface of the Server.exe and call of method of it.

In fact something like we're doing in C++ with an RPC server running.

Is it possible to access to a running assembly without creating a new
instance ?

Thanks in advance.
GizMo.

Aug 4 '06 #2
It's what I was thinking about but I wasn't sure that it could not be
performed using the Reflection !

Thanks a lot GhostInAK !
GhostInAK a écrit :
Hello Gizmo,

Remoting is the new RPC.

-Boo
Hi all,

I'm wondering if it is possible in C# ( + Reflection ) to do something
like this :

Assume that a Server.exe ( which is a .Net assembly, let's say
WindowsApplication ) is running on th PC.
From a Client.exe, Load the Server.exe assembly THAT IS RUNNING. I
mean
without creating a new instance of Server.exe. And then Search for an
interface of the Server.exe and call of method of it.

In fact something like we're doing in C++ with an RPC server running.

Is it possible to access to a running assembly without creating a new
instance ?

Thanks in advance.
GizMo.
Aug 4 '06 #3
Hello gizmo,

Reflection is not capable of acquiring instances. I believe the Activator
class is part of the Reflection namespace.. but it only creates new instances..
doesnt acquire existing ones. Reflection is the majik dist that acquires
existing instances.

Alternatively you could use sockets and design your own "RPC"-like communication
protocol. I think Reflection is a better choice.

-Boo
It's what I was thinking about but I wasn't sure that it could not be
performed using the Reflection !

Thanks a lot GhostInAK !

GhostInAK a écrit :
>Hello Gizmo,

Remoting is the new RPC.

-Boo
>>Hi all,

I'm wondering if it is possible in C# ( + Reflection ) to do
something like this :

Assume that a Server.exe ( which is a .Net assembly, let's say
WindowsApplication ) is running on th PC.

From a Client.exe, Load the Server.exe assembly THAT IS RUNNING. I
mean

without creating a new instance of Server.exe. And then Search for
an interface of the Server.exe and call of method of it.

In fact something like we're doing in C++ with an RPC server
running.

Is it possible to access to a running assembly without creating a
new instance ?

Thanks in advance.
GizMo.

Aug 4 '06 #4

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

Similar topics

2
by: Mike M | last post by:
Hello, I created a simple C# library assembly that exposes general facilities I would like to use in my ASP.NET web applications. If I added the assembly into the bin directory of my asp.net...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
3
by: simon.duvall | last post by:
Hey all, Was referencing various COMs, and tried using the Windows Genuine Advantage 1.0 Type Library. There's a cool method called GetMachineDetails() that I wanted to try, but for some...
2
by: rachana | last post by:
Hi, I am trying to deploy a asp.net website developed using Visual Studio 2005 on server. Application works fine on development machine, but when trying to run on server I get following error...
5
by: pt | last post by:
Hi, i am wonderng what is faster according to accessing speed to read these data structure from the disk in c/c++ including alignment handling if we access it on little endian system 32 bits...
0
by: learnet | last post by:
Hi, I have a question about using different versions of same assembly from GAC.... I have created a assembly "testlib" and created a strong name for that assembly. Installed the assembly in...
1
by: zumbo | last post by:
I'm accessing MSOutlook via Microsoft.Office.Interop.Outlook. It works fine if I add a reference to either version 11 (Outlook 2003) or version 12 (Outlook 2007) of the interop assembly to my...
0
by: Matthew Brealey | last post by:
I have the following entry in a .skin file: <asp:button runat=server SkinId=btnSubmit ImageUrl="~/Images/ submit.gif" /> But I want to make the image an embedded resource in a different...
3
by: John Dann | last post by:
We've got a VB2005 program written some time back that we're trying to do some maintenance on still from within VB2005 but now running on a Vista Business PC (which I think may be relevant to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
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
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...

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.