no

How to Fix Could Not Load the Assembly in C#

Recently I was deploying a module of a website on top of another virtual directory. Of course the simplest way is to make this directory a...

Recently I was deploying a module of a website on top of another virtual directory. Of course the simplest way is to make this directory as an IIS application, but that's the last option. What I did was to override the "base" web.config file and add the following lines:
<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="bin;MYDIRECTORY/BIN"/>
      </assemblyBinding>
   </runtime>
</configuration>
What it basically does, is tell the IIS to look for bin objects in the MYDIRECTORY/BIN folder relative to the virtual directory itself.

Related

c# 404114641249054415

Post a Comment Default Comments

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item