Info App.config probing privatePath

A

Antonio

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
 
M

Marc Scheuner [MVP ADSI]

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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top