O
Oenone
I'm sure there's an obvious way to do this, but I'm missing it so far.
I have an ASP.NET application that relies on several DLLs to work. Currently
in order to get my site working I have to put them all in the bin/ folder
within my web site's directory.
As I have numerous web sites, I want to be able to place all of these DLLs
just once into a single location elsewhere on the disk (e.g., "D:\DLLs"). I
don't want to put them into the GAC.
How can I configure my ASP.NET web sites so that they pick up the required
DLLs from the D:\DLLs directory? I have tried adding this to the web.config
file and it didn't make any difference:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="D:\DLLs" />
</assemblyBinding>
</runtime>
[...rest of web.config file...]
</configuration>
With this in place and the bin/ folder removed, the code fails:
Dim myObject As MyDLL.MyClass
Compiler Error Message: BC30002: Type 'MyDLL.MyClass' is not defined.
How can I get this working?
Many thanks,
I have an ASP.NET application that relies on several DLLs to work. Currently
in order to get my site working I have to put them all in the bin/ folder
within my web site's directory.
As I have numerous web sites, I want to be able to place all of these DLLs
just once into a single location elsewhere on the disk (e.g., "D:\DLLs"). I
don't want to put them into the GAC.
How can I configure my ASP.NET web sites so that they pick up the required
DLLs from the D:\DLLs directory? I have tried adding this to the web.config
file and it didn't make any difference:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="D:\DLLs" />
</assemblyBinding>
</runtime>
[...rest of web.config file...]
</configuration>
With this in place and the bin/ folder removed, the code fails:
Dim myObject As MyDLL.MyClass
Compiler Error Message: BC30002: Type 'MyDLL.MyClass' is not defined.
How can I get this working?
Many thanks,