473,405 Members | 2,300 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,405 software developers and data experts.

Specify probing location WITHOUT app.config?

JD
I've got a Windows Forms application that I'd like to NOT have an app.config
file for. There are, however, a few "utility" assemblies used by the
application and I'd like them to be in a subdirectory of the main app
directory:

c:\mainapp
c:\mainapp\libraries

I'm wondering if I can programmatically specify the "libraries" directory as
a location to probe for assemblies at runtime. I don't see anywhere that the
"privatePath" for probing can be modified, except for in app.config... am I
out of luck on this one?

Regards,

JD
Jul 21 '05 #1
1 2712
>I've got a Windows Forms application that I'd like to NOT have an app.config
file for. There are, however, a few "utility" assemblies used by the
application and I'd like them to be in a subdirectory of the main app
directory:


You could add those to your current AppDomain programmatically:

AppDomain.CurrentDomain.AppendPrivatePath(<your path>);

Should work.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #2

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

Similar topics

2
by: Vinoth Kumar | last post by:
hi all i wrote a windows service. i am trying to get it to use an app.config file. unfortunately, when the service starts, it assumes that the ConfigurationSettings file is in...
0
by: Siegfried Heintze | last post by:
I have an example of using Forms Authentication to specify roles stored in an SQL database from 2002 May MSDN magazine. Must I use a database to use the roles feature of forms authentication?
2
by: GrantMagic | last post by:
I am currently managing a number of websites, all following the same structure. However, when I launch a new website, I have to go through every page to find and replace the base url's. I would...
1
by: JD | last post by:
I've got a Windows Forms application that I'd like to NOT have an app.config file for. There are, however, a few "utility" assemblies used by the application and I'd like them to be in a...
0
by: Rajiv Das | last post by:
..Net 2.0 --------- Assume I am on a non-domain network. The proxy asks me to authenticate whenever I want to access the net. I have an app, through which I wish to access web sites using...
0
by: Lunatic Magnet | last post by:
Hi I need a script to: 1. Create a Database 2. Specify the file locations for the log and DB files. 3. Set the owner. other info: SQL2005. using AD accounts not SQL, don't need to create...
3
by: Stephen Falken | last post by:
I need to validate incoming XML files in a VB.Net 2005 application that must adhere to a DTD. This DTD is the only schema these XML files need to validate against. How can I specify/load the...
5
by: cforcloud karulvan | last post by:
hi all, i am working on a ajax calendar program, where the user will click on a date and its corresponding event list will be displayed beside it (similar to http://www.google.com/calendar)....
2
by: =?Utf-8?B?TWFubnkgQ2hvaGFu?= | last post by:
Hello Guys, Just curious over the fact if i can store Image Location in Web.Config and then how can i extract that location in HTML <td style="width:1%" align="left" valign="middle"> <img...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.