473,765 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing a class outside of project

Hello,

I have a simple problem. I got two visual studio projects, one is an
application, the other a common windows service. The application needs
to get a remote reference of the service. Now the question: How do I
get the application-project known to the referenced classtype of the
remote object in the service-project ?

Thanx for any help!

Nov 15 '05 #1
1 1946
Peter,

Since the instances of the objects will be in separate application
domains, you will have to use Remoting to access it. Check out the section
of the .NET framework documentation titled "Accessing Objects in Other
Application Domains Using .NET Remoting", located at (watch for line wrap):

http://msdn.microsoft.com/library/de...etremoting.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldin o=at=exisconsul ting<dot>com

"Peter Lorz" <pe********@day stone.de> wrote in message
news:3f******** *************** @newsread2.arco r-online.net...
Hello,

I have a simple problem. I got two visual studio projects, one is an
application, the other a common windows service. The application needs
to get a remote reference of the service. Now the question: How do I
get the application-project known to the referenced classtype of the
remote object in the service-project ?

Thanx for any help!

Nov 15 '05 #2

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

Similar topics

2
3816
by: Mike Grace | last post by:
Hi, I have a session variable in an asp.net web project that I would like to access from a C# project in the same solution. When I try and use the Session variable e.g. acc = Session; in the C# project I get the following error: C:\Inetpub\wwwroot\Optima Online\DataLibrary\DataClass.cs(272): The name 'Session' does not exist in the class or namespace 'DataLibrary.DataClass'
3
3455
by: Simon Harvey | last post by:
Hi chaps, Can someone direct me to the necessary class that will allow me to write information into my applications .config file? I know how to read information but I'm sure there must be a way to write out to the config file easily as well. Also, my application doesnt actually have a config file created by default. I thought the VS template would create one automatically but it doesnt. Is it ok just to make one in the form:
2
1233
by: Parveen | last post by:
I have a data grid on a windows form that I want to access from another class that's outside the form but in the same project. This other class stores all methods that populate and modify the grid on my form - it basically contains all the logic behind the form. I will be calling these methods from the form class but am not sure how I can access the datagrid from outside the form. Should my class inherit the form so that it has access to...
5
1430
by: Dennis | last post by:
How do I access a private property of a class from outside the class. I have a class that has a property which I want to access in my code for read/write but allow end users to only read. -- Dennis in Houston
8
2745
by: dwok | last post by:
I have been wondering this for a while now. Suppose I have a class that contains some private member variables. How should I access the variables throughout the class? Should I use properties that expose the variables or is it OK to just access the variables directly? Keep in mind that I am talking about accessing the variables from within the class that they are defined. Thanks!
5
2705
by: Cyril Gupta | last post by:
Hello, I have a class inside another class. The Scenario is like Car->Engine, where Car is a class with a set of properties and methods and Engine is another class inside it with its own set of properties. I want to know if there is a way to access the methods and the properties of the Owner class for the class that's inside it? I.e. I want to find out within Engine what make the Car is which is exposed by the property Car.Model.
3
1128
by: R.Kaiser | last post by:
In a VS2005 Windows Forms Application I have an ordinary class like class C{ int x; public: C(int x_):x(x_) { } void display() { // Here I want to access a TextBox Form member // Form???->textBox1->Text=(x).ToString();
2
2556
by: Licheng Fang | last post by:
On Apr 14 2003, 10:30 pm, Alex Martelli <al...@aleax.itwrote: Sorry to dig up this old thread, but I would like to know what's the rationale is. Why can't a nested function rebind a variable of an outer function? I was trying to write a function that creates another function and returns it when I came across this problem. These two solutions have a difference:
2
3416
by: chandan | last post by:
Hi friends, I wanted to create object of the class which was outside of App_Code folder , but i am not able to create the instance of that class.. can we do that into Asp.Net 2.0 , C# How to create object of a class which is outside of App_Code folder in Asp.net 2.0 using C#. thanks in advance.. waiting for your valuable comments.
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.