Search code examples
c#asp.netsql-server-2014-express

How to host my website developed using sql and asp.net locally?


I have developed An Online Examination System project using Visual Studio for web 2013 IDE, using asp.net and SQL SERVER 2014 and CSS. Now I want to host this in one of the 50 systems which acts as a server and remaining should be able to access this page using Server's IP address.

The small version of IIS which is installed with my Visual Studio is helping me to host my website locally.

Now my question is... How can I achieve this.

Thanks in Advance.


Solution

  • You need to install IIS to host the web application. I don't know what kind of operating system you have so I'll post the steps for Windows 8.1.

    Go to Control Panel -> Programs and Features -> Turn Windows Features On or Off

    From there check Internet Information Services (as shown in the image below)

    Install IIS

    After install open Internet Information Services Manager click on the Default Web Site and on the right panel click Basic Settings.

    Configure web site in IIS

    In the Physical Path box enter the path to where your application resides and click Ok.

    Now, make sure that the login IIS_USR has access to the database and you're set.

    For a more detailed list of steps and more configuration options please check the article on IIS site.