Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2005

Tip: Looking for answers? Try searching our database.

Info App.config probing privatePath

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Antonio - 11 Apr 2005 13:11 GMT
Hello,

I need some information about the setting for the exe(in a file app.config)
to find Reference...

i know that i can use the syntax: <probing privatePath = "Bin;Utils"/>

is possibile that there is no way to set the search also in the root
directory?

Example ...

My Directory Program : c:\program files\My Software

In my Path Program there are directory BIN and UTILS...

I want create a folder EXE(in c:\program files\My Software) and read
dependencies in the BIN and UTILS

I test <probing privatePath = "\Bin;Utils"/> or <probing privatePath =
"..Bin;Utils"/> but not works...

Help me
Marc Scheuner [MVP ADSI] - 12 Apr 2005 07:06 GMT
>I need some information about the setting for the exe(in a file app.config)
>to find Reference...
[quoted text clipped - 3 lines]
>is possibile that there is no way to set the search also in the root
>directory?

No, you CANNOT reference stuff outside your app's main directory -
only in that directory, or any subdirectories thereof.

>Example ...
>My Directory Program : c:\program files\My Software
>
>I want create a folder EXE(in c:\program files\My Software) and read
>dependencies in the BIN and UTILS

Won't work - sorry. That's the way it is in the .NET framework - you
can only deal with stuff in your own directory, or any subdirs - but
not in other directories on the same level, or even "up stream" in
your directory hierarchy.

Marc

PS: Unless of course you use an explicit "Assembly.LoadFrom(:.....)"
and pass it a full path to another location......
================================================================
Marc Scheuner                        May The Source Be With You!
Berne, Switzerland                      m.scheuner -at- inova.ch

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.