473,396 Members | 2,154 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.

Reference a .NET dll that is on another network computer.

Good Afternoon Folks,

Im kinda in a pickle. I have created a .net 2.0 dll written in vb.net
that needs to reside in a folder on a networked computer ( for
compatibility with another program). How can I add that reference to
my client project on my development machine that will consume that
dll. please keep in mind that the computer name or path may change.

Thanks in advance.
Chris

Aug 2 '07 #1
4 5693

Well ,,,

Normally this is not a problem

I have created a .net 2.0 dll written in vb.net
that needs to reside in a folder on a networked computer ( for
compatibility with another program). How can I add that reference to
my client project on my development machine that will consume that
dll.
In the company i work we have a network folder were all programmers release
there reusable modules that may be used by other programmers in our company
and setting the refernce to the remote dll is no problem , when we compile
the proggy all dll`s are automaticly copied to the bin folder of our project
( this is standard behavior of VS.Net )

However this line
>please keep in mind that the computer name or path may change.
Is confusing me ,do do you mean by that that after the proggy is compiled
it needs to reference the assembly on a remote location ?
cause as i said VS.Net copies the Dll local to the bin directory when
compiling the project as all .Net proggys are standard XCopy deployable

If you really mean that the release project should refernce a remote dll
from who te location might change , well in that case you could use
reflection however when reflecting to the target the proggy must know 2
things

1. the interface it is reflecting to ( typicly provided by a interface
assembly, or a skeleton copy of the target )
2. the location ( path ) of the actuall assembly ( i read this with one of
my projects from a database )

well HTH

Michel
<ch****@gmail.comschreef in bericht
news:11*********************@x35g2000prf.googlegro ups.com...
Good Afternoon Folks,

Im kinda in a pickle. I have created a .net 2.0 dll written in vb.net
that needs to reside in a folder on a networked computer ( for
compatibility with another program). How can I add that reference to
my client project on my development machine that will consume that
dll. please keep in mind that the computer name or path may change.

Thanks in advance.
Chris

Aug 2 '07 #2

<ch****@gmail.comwrote in message
news:11*********************@x35g2000prf.googlegro ups.com...
Good Afternoon Folks,

Im kinda in a pickle. I have created a .net 2.0 dll written in vb.net
that needs to reside in a folder on a networked computer ( for
compatibility with another program). How can I add that reference to
my client project on my development machine that will consume that
dll. please keep in mind that the computer name or path may change.

Thanks in advance.
All that's going to happen is that the DLL is going to be copied to the
machine that needs the reference to the DLL . The DLL going to be copied to
wherever the exe is located on the machine that has reference to the DLL.
The VS IDE is going to do it by itself and make the copy.

Aug 2 '07 #3
ch****@gmail.com wrote:
Im kinda in a pickle. I have created a .net 2.0 dll written in vb.net
that needs to reside in a folder on a networked computer ( for
compatibility with another program).
No problem, /so long as/ you have Code Access Security Policies in place
"trusting" the network file share where the dll resides - I'm guessing
you already have, if the "compatible application" already runs from there).
How can I add that reference to my client project on my development
machine that will consume that dll.
Just add a reference and browse to the Dll. The IDE will take a local
copy of it.

When the application /runs/, the Dll will be located by the Framework as
and when a client application needs something from it. The easiest way
is to leave it in the same directory as the client application.

HTH,
Phill W.
Aug 3 '07 #4
On Aug 2, 3:47 pm, "Michel Posseth [MCP]" <M...@posseth.comwrote:
Well ,,,

Normally this is not a problem

I have created a .net 2.0 dll written in vb.net
that needs to reside in a folder on a networked computer ( for
compatibility with another program). How can I add that reference to
my client project on my development machine that will consume that
dll.

In the company i work we have a network folder were all programmers release
there reusable modules that may be used by other programmers in our company
and setting the refernce to the remote dll is no problem , when we compile
the proggy all dll`s are automaticly copied to the bin folder of our project
( this is standard behavior of VS.Net )

However this line
please keep in mind that the computer name or path may change.

Is confusing me ,do do you mean by that that after the proggy is compiled
it needs to reference the assembly on a remote location ?
cause as i said VS.Net copies the Dll local to the bin directory when
compiling the project as all .Net proggys are standard XCopy deployable

If you really mean that the release project should refernce a remote dll
from who te location might change , well in that case you could use
reflection however when reflecting to the target the proggy must know 2
things

1. the interface it is reflecting to ( typicly provided by a interface
assembly, or a skeleton copy of the target )
2. the location ( path ) of the actuall assembly ( i read this with one of
my projects from a database )

well HTH

Michel

<chu...@gmail.comschreef in berichtnews:11*********************@x35g2000prf.go oglegroups.com...
Good Afternoon Folks,
Im kinda in a pickle. I have created a .net 2.0 dll written in vb.net
that needs to reside in a folder on a networked computer ( for
compatibility with another program). How can I add that reference to
my client project on my development machine that will consume that
dll. please keep in mind that the computer name or path may change.
Thanks in advance.
Chris
Hello and thanks for your responses.

I believe that reflection is what i will need, because "the release
project should refernce a remote dll". However, i am new to
reflection, and i am wondering if anyone can point me in the direction
of any good learning resources. What i am really interested in is
subscribing to the events that are defined within the remote dll.

Your help is appreciated.

TIA.

Chris

Aug 3 '07 #5

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

Similar topics

6
by: BP Prgm | last post by:
This is my VBScript function: <script language="JavaScript" type="text/JavaScript"> Dim UN Set objNet = CreateObject("WScript.NetWork") Set objUser = GetObject("WinNT://my domain/" &...
1
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted....
8
by: GeekBoy | last post by:
I understand the benefit of pushing the StateServer process onto another computer to "balance" the load and take some cpu and memory usage off the web server, but how much could it possibly help?...
3
by: Vjay77 | last post by:
As a result from who is I am getting this: > > NOTICE AND TERMS OF USE: You are not authorized to access or query our WHOIS database through the use of high-volume, automated, electronic...
2
by: Jeffrey Tate via DotNetMonster.com | last post by:
The error is: The proxy settings on this computer are not configured correctly for Web discovery. MSDN states that this is caused by: This error appears in the Add Web Reference dialog box if...
1
by: SrDhUS | last post by:
I get the following error when I try to add a web reference using Web Reference Dialog (VS .Net 2003) Error "The proxy settings on this computer are not configured correctly for web discovery."...
2
by: brian | last post by:
Can anyone help please - I have VS2003 , a small web app that must reference a web services. Each time I add the reference the web references times out. I have looked at article 815209 which...
0
by: Paul Brady | last post by:
I volunteer at a youth ministry agency and help them with their student database. They have two computers, both running Windows XP. Both have Office 2002 installed without Access, except that...
1
by: shriil | last post by:
Hi I am facing a problem with regard to opening of Access Databases, resident on pcs of my office network connected thru LAN, from my machine on the network. The folders in which these...
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: 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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.