Determine the path to the "Bin" folder

I have an ASP.Net project using AJAX that I am hosting on a server behind a reverse proxy.

Let's assume my project is on the server here:

C: \ Inetpub \ Wwwroot \ Designed \ Application

So the bin folder should be here:

C: \ Inetpub \ Wwwroot \ Designed \ Application \ Bin

The reverse proxy makes the server automatically look for the Bin folder for the project here:

C: \ Inetpub \ Wwwroot \ Bin

because when working behind a reverse proxy, all file links must be relative to the root directory.

I am assuming that the default Bin path is set to "~ \ Bin", which is not the root directory.

I need my bin folder path to be set to ". \ Bin" Any ideas?

thank

EDIT:

Adding the BIN folder to C: \ inetpub \ wwwroot \ Bin is NOT an option.

thank

+2


source to share


2 answers


It turns out it was an IIS virtual directory issue.



Thanks for the help!

+1


source


You can use assemblyBinding to install a trial patch for your assemblies.

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

      



See assemblyBinding for more information .

+4


source







All Articles