please find the steps to host the asp.net application on IIS called Internet Information Services.
- IIS Installation
- Enable ASP.NET features on IIS
- Install .NET framework
- Hosting a Site
1):
IIS is a protocol server which is used to host a website on server.
To install IIS start with windows start icon go to Control panel, Programs and Features , then click Turn Windows features on or off.
now click windows features on or off, the Windows Features pop up window will opens.
2 ) : Enable ASP.NET Features on IIS
now Expand the Application Development Features in that enable the ASP.NET application features such as:
- .NET Extensibility
- ASP
- ASP.NET
- CGI
- ISAPI Extensions
- ISAPI Filters
- Server-Side Includes.
After enabling the ASP.NET features on IIS hit Ok. The IIS server Manager is successfully enabled in start control list.
3) : Install .NET Framework.
Now we have to install .NET framework version in our system because the aspx web page needs to run the platform of .NET framework.
now download link for .NET Frame work 4.5 click Here.
On this page hit download button and the following window will open then Save the File.
3) : Install .NET Framework.
Now we have to install .NET framework version in our system because the aspx web page needs to run the platform of .NET framework.
now download link for .NET Frame work 4.5 click Here.
On this page hit download button and the following window will open then Save the File.
click the saved exe file and the extract field process window will appear. The file extraction process completed and the following authorization window will appear, check I agree box then hit Install. Then the download and installation progress will appear in the same window.
After the downloading and Installation progress are completed hit the finish button to complete the Installation. Now your IIS is ready to host ASP.NET web sites.
4) : Hosting a site.
Select the website folder which one you want to host it into your IIS.
Start IIS server, in that click site, right click on site and then choose add web site
Add web site window
Add site name, path of that site folder, then assign the IP address or enter the host name of that particular site like www.example.com and then hit ok.
After the process is completed your site is placed under default web site under Sites.
Add site name, path of that site folder, then assign the IP address or enter the host name of that particular site like www.example.com and then hit ok.
After the process is completed your site is placed under default web site under Sites.
At the same time there is one application pool is automatically created while adding the web site.
Figure 7: Application Pool
Here I have a simple web page like default.aspx in your website there is a database connectivity available which means then you have to follow the steps to add the database into application pool.
Step 5: Database Connectivity
In the application pool panel right click the application name like sample, then choose Advanced Settings option.
Here I have a simple web page like default.aspx in your website there is a database connectivity available which means then you have to follow the steps to add the database into application pool.
Step 5: Database Connectivity
In the application pool panel right click the application name like sample, then choose Advanced Settings option.
The settings window will open in that window select .net framework version like v2.0. Based on our pages it automatically chooses the framework version. Then select managed pipeline mode is Integrated or Classic.
Then in the process model tab select Identity then choose the following:
Figure 9: Pool Identity
Select LocalSystem because our database connectivity is placed in our system SQL Server so we need to choose LocalSystem then only our database is connected. Then hit OK to close the window.
Select LocalSystem because our database connectivity is placed in our system SQL Server so we need to choose LocalSystem then only our database is connected. Then hit OK to close the window.
In the Actions panel choose Browse link