Training
Module
Build your first ASP.NET Core web app - Training
Learn how to build your first web app using ASP.NET Core.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
To run the samples that are hosted by Internet Information Services (IIS), you must make sure that IIS is properly installed and is running.
From Server Manager, select Roles. Under Roles Summary, click Add Roles.
Click Next to display the Select Server Roles dialog.
Select Application Server from the Roles list, and then click Next twice to display the Select Role Services dialog for the Application Server role.
Select the Web Server (IIS) check box. If you are prompted to install additional role services and features, click Add Required Features. Click Next twice to display the Select Role Services dialog for the Web Server (IIS) role.
Expand Management Tools, and then expand IIS 6 Management Compatibility. Select IIS 6 Scripting Tools. If you are prompted to install additional role services and features, click Add Required Role Services. Click Next.
If the summary of selections is correct, click Install.
When installation completes, click Close.
Click Start, and then click Control Panel.
Open the Programs group.
Under Programs and Features, click Turn Windows Features on or off.
The User Account Control dialog is displayed. Click Continue.
The Windows Features dialog is displayed. Expand the item labeled Internet Information Services.
Expand the item labeled World Wide Web Services.
Expand the item labeled Application Development Features.
Make sure the following items are selected:
.NET Extensibility
ASP.NET
ISAPI Extensions
ISAPI Filters
Under the item labeled World Wide Web Services, expand Common Http Features.
Make sure Static Content is selected.
Under the item labeled World Wide Web Services, expand Security.
Make sure that Windows Authentication is selected.
Under the Internet Information Services directory, expand the item labeled Web Management Tools, and then select IIS Management Console.
Expand the item labeled IIS 6 Management Compatibility, and then select IIS 6 Scripting Tools.
Under the Internet Information Services directory, expand the item labeled Microsoft .NET Framework 3.5.1, and then select Windows Communication Foundation Http Activation.
Click OK.
From Server Manager, select Roles. Under Roles Summary, click Add Roles.
Click Next to display the Select Server Roles dialog.
Select Application Server from the Roles list, and then click Next twice to display the Select Role Services dialog for the Application Server role.
Select Web Server (IIS) check box. If you are prompted to install additional role services and features, click Add Required Features. Click Next twice to display the Select Role Services dialog for the Web Server (IIS) role.
Expand Management Tools, and then expand IIS 6 Management Compatibility. Select IIS 6 Scripting Tools. If you are prompted to install additional role services and features, click Add Required Role Services. Click Next.
If the summary of selections is correct, click Install.
When installation completes, click Close.
Click Start, and then click Control Panel.
Select the Programs group.
Under Programs and Features, click Turn Windows Features on or off.
The User Account Control dialog is displayed. Click Continue.
The Windows Features dialog is displayed. Expand the item labeled Internet Information Services.
Expand the item labeled World Wide Web Services.
Expand the item labeled Application Development Features.
Make sure the following items are selected:
.NET Extensibility
ASP.NET
ISAPI Extensions
ISAPI Filters
Expand the item labeled Web Management Tools, and then select IIS Management Console.
Under the item labeled World Wide Web Services, expand Common Http Features.
Make sure Static Content is selected.
Under the item labeled World Wide Web Services, expand Security.
Make sure Windows Authentication is selected.
Expand the item labeled IIS 6 Management Compatibility, and then select IIS 6 Scripting Tools.
Expand the item labeled Microsoft .NET Framework 3.0, and then select Windows Communication Foundation Http Activation.
Click OK.
From Manage Your Server, click Add or remove a role, and then click Next.
Select Application server (IIS, ASP.NET) from the Server Role list, and then click Next.
Select Enable ASP.NET check box, and then click Next.
If the summary of selections is correct, click Next.
In Control Panel, click Add or Remove Programs.
In the Add or Remove Programs dialog box, click Add/Remove Windows Components.
In the Windows Components Wizard, select the Internet Information Services (IIS) check box, and then click Next.
If the Files Needed dialog box is displayed, insert your operating system installation disc, browse to the i386 folder, and then click OK.
When installation completes, click Finish.
Close the Add or Remove Programs dialog box, and then close Control Panel.
Save the HTML file found at the end of this topic in the root \InetPub\wwwroot directory and name it Default.aspx.
Open a browser window.
Type http://localhost/Default.aspx
in the address box, and then press ENTER.
A Web page with the text "Hello World" should appear.
Note
Each time you install a new version of the .NET Framework, you must re-register aspnet_isapi as a Web service extension for IIS. To do so, issue the aspnet_regiis –I –enable
command.
<html>
<body>
<form >
<h3> Hello World
</h3>
</form>
</body>
</html>
Training
Module
Build your first ASP.NET Core web app - Training
Learn how to build your first web app using ASP.NET Core.
Documentation
Virtual Directory Setup Instructions - WCF
Learn more about: Virtual Directory Setup Instructions
Troubleshooting Unexpected Issues
Prescriptive detailed errors, automatic failure tracing and more exposed runtime information make IIS the simplest and quickest Web server to troubleshoot. T...
Adding ISAPI/CGI Restrictions <add>
Overview The <add> element in the <isapiCgiRestriction> collection allows you to specify individual Common Gateway Interface (CGI) and Internet S...
Listener Adapters <listenerAdapters>
Overview The <listenerAdapters> element specifies configuration settings for listener adapters for Internet Information Services (IIS) 7. Listener adap...