Probing for DLL's in ASP.Net 2.0

G

Guest

Is there a way to group dll files by putting them in a subdirectory in the
bin directory for ASP.net 2.0 Web Site projects and have the CLR find them?
I tried using <probing> and adding the following to the appropriate location
(<configuration>) in the web.config file to indicate I wanted it to
look in the bin\subbin directory, but to no success. I do not have any
<codebase> defined.

The relevent peices of the web.config file look like:

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


My bin directory is under root and my binary is culture neutral so I believe
with the above file the CLR should be looking in:

bin\subbin

Does probing even work for Web projects?

Any help would be appreciated,

Thanks,
Dean
 
S

Steven Cheng[MSFT]

Hi Dean,

Welcome to the MSDN newsgroup.

As for the private assembly probing for ASP.NET application, it is limited
to the "bin" dir only. This is because ASP.NET runtime host is a
particularly customized .NET CLR host (different from normal console or
winform application). Currently we have to put all the private assemblies
in the "bin" sub dir of the appliation.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top