Reputation: 2155
I have an ASP.Net project using AJAX that I am putting on a server behind a reverse proxy.
Lets say my project is located on the server here:
C:\inetpub\wwwroot\proj\app
So the bin folder should be here:
C:\inetpub\wwwroot\proj\app\Bin
The reverse proxy causes the server to automatically look for the Bin folder for the project here:
C:\inetpub\wwwroot\Bin
because when working behind a reverse proxy all file references need to be relative to the root directory.
I'm assuming that the Bin path is by default set to "~\Bin", which is not relative to the root directory.
I need my Bin folder path to be set to ".\Bin" Any ideas?
Thanks
EDIT:
Adding a BIN folder to C:\inetpub\wwwroot\Bin is NOT an option.
Thanks
Upvotes: 2
Views: 8061
Reputation: 4225
You can use assemblyBinding to set the probing patch for your assemblies.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>
For more information, refer to assemblyBinding.
Upvotes: 4
Reputation: 2155
It turns out this was a IIS Virtual Directory problem.
Thanks for the help!
Upvotes: 1