473,505 Members | 15,036 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2723
>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
2654
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
246
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
3132
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
416
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
1184
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
1478
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
5316
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
13325
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
5906
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
7098
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
7303
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,...
1
7018
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
7471
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...
1
5028
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...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
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 ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
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...

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.