question

CoreyFleig-6304 avatar image
0 Votes"
CoreyFleig-6304 asked BruceZhang-MSFT answered

How to relocate the "bin" directory

My production app dlls are in the top level "bin" directory.
I'd like to have a test app sitting side by side, where the test version can point to an alternate "bin" directory with different dlls.

Can this be done?

I've tried using:
<probing privatePath="bin\debug" />

in the web.config file and it didn't help.

windows-server-iis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

BruceZhang-MSFT avatar image
0 Votes"
BruceZhang-MSFT answered

Hi @CoreyFleig-6304 ,

First you need to make sure the structure of web.config is right. Here is s sample structure.

 <configuration>
     <system.web>
         <compilation debug="true" targetFramework="4.0">
             <assemblies>
                 <add assembly="Something.Web" />
             </assemblies>        
         </compilation>
     </system.web>
     <runtime>
         <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
             <probing privatePath="bin\debug" />
         </assemblyBinding>
     </runtime>
 </configuration>

So the second thing is use add assembly to tell the name of assembly. Because if the server finds the file, and successfully loads the assembly and the class it will start complaining about all the missing referenced files.




If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

Best regards,
Bruce Zhang




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.