privatePath Probing not working??

G

Guest

I am writing an installer for our application. The installer places the
application .exe in the install directory and then creates a \bin subfolder
and places all .dlls in the \bin subfolder.

When we run the application it throws a "file not found" exception upon
attempted loading of the dependent .dlls. I have a probing element in my
application's config file:

<configuration>
<runtime>
<assemblyBindings>
<probing privatePath="bin" />
</assemblyBindings>
</runtime>

But it still can't find the .dlls, any ideas?
 
R

Richard Blewett [DevelopMentor]

Richard said:
I am writing an installer for our application. The installer places the
application .exe in the install directory and then creates a \bin
subfolder
and places all .dlls in the \bin subfolder.

When we run the application it throws a "file not found" exception upon
attempted loading of the dependent .dlls. I have a probing element in my
application's config file:

<configuration>
<runtime>
<assemblyBindings>
<probing privatePath="bin" />
</assemblyBindings>
</runtime>

But it still can't find the .dlls, any ideas?

You are missing the namespace on the assemblyBinding element (and those
below it)

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin" />
</assemblyBinding>
</runtime>
</configuration>

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
 

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