How to deploy an ASP.NET MVC application if your ISP does not use the BIN directory?

I need to do a Bin deployment on our ISP, network solutions. They have NET Framework 3.5 SP1 installed on their servers, but not ASP.NET MVC.

I need to point my application to a directory named cgi-bin instead of bin. Network Solutions claims that this is the only catalog that they have designated for execution as an average level of trust. I need to host the System.Web.Mvc DLL and the application DLL, and I need my ASP.NET MVC application to find them in this directory.

It goes without saying that they will not put them in the GAC for me.

How do I tell my application to look in the cgi-bin directory instead of the bin directory for the DLL?


The decision is published below.

+3
source share
3 answers

After a long overhaul, I finally decided to expand the actual bin directory that I created (the procedure Network Solutions says won't work) after Phil Eliminate the instructions exactly and it seems to work.

I had to apply the routing patch described in ASP.NET MVC: the page works by default, but other pages return a 404 error because Network Solutions still works with IIS6.

For those interested, you can specify a different bin directory in the web.config file as follows:

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

I tried this using the cgi-bin directory in Network Solution, and my application really detected the mvc dll.

+7

cgi-bin, . "". "" , .

0

Try moving to another provider that allows you to have a BIN directory as part of your application folder.

-2
source

Source: https://habr.com/ru/post/1713297/


All Articles