Easily troubleshoot running multiple ASP. NET site applications on a single virtual host

Source: Internet
Author: User

I don't know if there are any friends who, like me, encounter such a problem:
To buy. NET space Online, due to the limitations of the virtual host, you can not set a directory as a standalone application, or some of the price is higher than the space, although can be set, but the number is limited. This problem has led to the extension of the Web site independent functions, more passive, or want to run a few different functions of the application, is also very troublesome.

However, recently I have found a very simple way to steer clear of this problem. In simple terms, two points:

Unified Bin directory:

The only problem is that all the generated DLL files and the files that need to be referenced are placed in the Bin directory under the application root directory , so the only issue is that the application needs to be careful not to duplicate the naming, and the benefit is that the Unified Common module can be called.

Unified Web. config configuration file:

This is the second step, to copy the configuration files for different applications in the Web. config configuration under the application root directory , including connectionString and appsetting, respectively, to the respective nodes, It also brings up a naming problem, and there is a greater likelihood of a conflict than a DLL file naming problem, which needs to be noted.

By completing these two points, you can put your standalone WEB application into a subdirectory of your liking and run it independently.
In general, it is useful to avoid naming problems.

Easily troubleshoot running multiple ASP. NET site applications on a single virtual host

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.