473,387 Members | 3,787 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.

Dll path...

VJ
At run time I want my Executable to look for certain shared DLLs between our
products at a speicfic path. How do I get this accomplished?

Thanks
VJ
Nov 21 '05 #1
3 1369
"VJ" <vi********@yahoo.com> ha scritto nel messaggio
news:#g*************@TK2MSFTNGP15.phx.gbl...
At run time I want my Executable to look for certain shared DLLs between our products at a speicfic path. How do I get this accomplished?


What kind of dll?

ActiveX?
Standard?
Managed?

--
Reporting tool: http://www.neodatatype.net
Nov 21 '05 #2
"VJ" <vi********@yahoo.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
At run time I want my Executable to look for certain shared
DLLs between our products at a speicfic path.
How do I get this accomplished?


Here are a couple of ways that I know of :

1) "Register" the shared DLL's in the Global Assembly Cache.
It won't actually matter where they're physically located; .Net will
be able to find them.

2) Use a DependentAssembly tag in your app.config, thereby
telling your application where to find *a* given DLL, as in

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding
xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity
name="[name]"
publicKeyToken="[token]"
culture="neutral"
/>
<codeBase
version="1.0.0.0"
href="[path to dll]"
/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

You'll need one of these DependentAssembly entries for /each/
DLL that /your/ application needs to load.

HTH,
Phill W.
Nov 21 '05 #3
VJ
The below articles gives information you need....

http://www.ondotnet.com/pub/a/dotnet...ingpolicy.html

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
At run time I want my Executable to look for certain shared DLLs between
our products at a speicfic path. How do I get this accomplished?

Thanks
VJ

Nov 21 '05 #4

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

Similar topics

31
by: John Roth | last post by:
I'm adding a thread for comments on Gerrit Holl's pre-pep, which can be found here: http://tinyurl.com/2578q Frankly, I like the idea. It's about time that all of the file and directory stuff...
9
by: Bengt dePaulis | last post by:
I have a local directory that I want to include in my sys.path How to save it permanently? Regards /Bengt
70
by: Michael Hoffman | last post by:
Many of you are familiar with Jason Orendorff's path module <http://www.jorendorff.com/articles/python/path/>, which is frequently recommended here on c.l.p. I submitted an RFE to add it to the...
34
by: Reinhold Birkenfeld | last post by:
Hi, the arguments in the previous thread were convincing enough, so I made the Path class inherit from str/unicode again. It still can be found in CVS:...
2
by: Rob Cowie | last post by:
Hi, Given a string representing the path to a file, what is the best way to get at the filename? Does the OS module provide a function to parse the path? or is it acceptable to split the string...
1
by: William Stacey [MVP] | last post by:
I need a bullet proof way to combine a root and a relative path to form a FQ rooted path (similar to a VDir in IIS). Path.Combine alone will not do the job in all cases. I also need to be sure...
4
by: python | last post by:
Bad file names, i.e. filenames the OS considers illegal, will cause functions in the os.path module to raise an error. Example: import os.path print os.path.getsize( 'c:/pytest/*.py' ) On...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
8
by: moondaddy | last post by:
I'm posting code for a user control ( FunctionConnectorSelector) below which has 3 content controls in it. each content control uses a style from a resource dictionary merged into the app.xaml...
6
by: bukzor | last post by:
I have to go into these convulsions to get the directory that the script is in whenever I need to use relative paths. I was wondering if you guys have a better way: from os.path import dirname,...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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...

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.