Setup procedure |
Microsoft® Windows Server 2003 with IIS 6.0 |
- Open Internet Information Services Manager, by opening your Start Menu and clicking Run.
- Enter inetmgr and click OK.
- Expand your server node and click Web Service Extensions.
- In the right pane, make sure ASP.NET v4.0 extension is in status Allowed.
- After you have Run projects on IIS, expand node Web Sites, select your website, and in the context menu, select Properties.
- Click ASP.NET tab, make sure that ASP.NET version is set to 4.0.30319, and click OK.
- On Home Directory tab, in Application pool dropdown box, select an application pool in which you run only .NET 4.0 applications.
- Click Configuration… button.
Application Configuration window appears.
- On Mappings tab, perform the following:
- Make sure you have mappings to the .svc and .xamlx extensions and make sure their Executable Path is set to one of the following:
- For 64-bit OS: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- For 32-bit OS: %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- In Wildcard application maps, click Insert… button and in Executable: input field, enter one of the following:
- For 64-bit OS: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- For 32-bit OS: %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- Deselect Verify that file exist checkbox and click OK.
- Click OK.
The Application Configuration window closes.
- Click Directory Security tab.
- In Authentication and access control, click Edit.
The Authentication Methods window appears.
- Make sure that Enable anonymous access checkbox is selected and that none of the checkboxes in Authenticated access is selected.
- Click OK » OK.
- Close Internet Information Services Manager.
|
Microsoft® Windows Server 2008 with IIS 7.0 |
Automatic configuration
- Download the PowerShell script and save it on your computer.
- In the context menu of the downloaded file, click Run with PowerShell.
- Restart the server.
NOTE: When running the PowerShell script, your system may become slower. Keep in mind that the script modifies Windows features that can affect other parts of the system.
Manual configuration
- Open the Server Manager by opening your Start Menu and clicking Administrative Tools » Server Manager.
- Select and expand Roles.
- If you do not see Web Server (IIS) role, you must add it using the Add Roles button.
- Click Web Server (IIS) and in the right pane, expand Role Services.
- Make sure you have installed the following services:
- Common HTTP Features » Static Content.
- Application Development » ASP.NET, .NET Extensibility, ISAPI Extensions, and ISAPI Filters.
- Management Tools » IIS Management Console, IIS Management Scripts and Tools, and Management Service.
- In the navigation tree on the left, click Features.
- Make sure you have the following features installed:
- Desktop Experience.
- .NET Framework 3.5.1 Features » WCF Activation » HTTP Activation.
- After you have Run projects on IIS, expand Web Server (IIS) node and click Internet Information Services (IIS) Manger.
In the right pane, the Internet Information Services (IIS) Manager appears.
- In the navigation of the IIS manager, expand your server node.
- Expand Sites node and click your website.
- In section IIS on the right, double-click Authentication.
- Perform one of the following:
- If you are using Forms authentication, make sure Anonymous Authentication and Forms Authentication are enabled and all other authentications are disabled.
- If you are using Claims-based authentication, make sure only Anonymous Authentication is enabled and all other authentications are disabled.
- Click your website again and in IIS section, double-click Handler Mappings.
- Make sure you have enabled handler mappings for *.svc and *.xamlx with executable path set to one of the following:
- For 64-bit OS: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- For 32-bit OS: %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- Close the Server Manager.
|
Automatic configuration
- Download the PowerShell script and save it on your computer.
- In the context menu of the downloaded file, click Run with PowerShell.
- Restart the server.
NOTE: When running the PowerShell script, your system may become slower. Keep in mind that the script modifies Windows features that can affect other parts of the system.
Manual configuration
- Open your Control Panel and click Programs and Features » Turn Windows features on or off.
- Turn on Internet Information Services.
- Under Internet Information Services, turn on the following features:
- Web Management Tools » IIS 6 Management Compatibility » IIS Metabase and IIS 6 configuration compatibility.
- Web Management Tools » IIS Management Console, IIS Management Scripts and Tools, and Management Service.
- Under World Wide Web Services, turn on the following:
- All features under Application Development features, except Server-Side Includes.
- Common HTTP Features » Default Document, Directory Browsing, HTTP errors, Http Redirection, Static Content.
- Security » Basic Authentication, Request Filtering, Windows Authentication.
- Under Microsoft .NET Framework 3.5.1 » Windows Communication Foundation HTTP Activation.
- After you have Run projects on IIS, open the Internet Information Services (IIS) Manger.
- Expand your server node.
- Expand Sites node and click your website.
- In section IIS on the right, double-click Authentication.
- Perform one of the following:
- If you are using Forms authentication, make sure Anonymous Authentication and Forms Authentication are enabled and all other authentications are disabled.
- If you are using Claims-based authentication, make sure only Anonymous Authentication is enabled and all other authentications are disabled.
- Click your website again and in IIS section, double-click Handler Mappings.
- Make sure you have enabled handler mappings for *.svc and *.xamlx with executable path set to one of the following:
- For 64-bit OS: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- For 32-bit OS: %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- Close the Internet Information Services (IIS) Manger.
|
Automatic configuration
- Download the PowerShell script and save it on your computer.
- In the context menu of the downloaded file, click Run with PowerShell.
NOTE: When running the PowerShell script, your system may become slower. Keep in mind that the script modifies Windows features that can affect other parts of the system.
Manual configuration
- Install ASP.NET 4.5.
- Open your Control Panel and click Programs and Features » Turn Windows features on or off.
- Turn on Internet Information Services.
- Under Internet Information Services, turn on the following features:
- Web Management Tools » IIS 6 Management Compatibility » IIS Metabase and IIS 6 configuration compatibility.
- Web Management Tools » IIS Management Console, IIS Management Scripts and Tools, and Management Service.
- Under World Wide Web Services, turn on the following:
- All features under Application Development features, except Server-Side Includes.
- Common HTTP Features » Default Document, Directory Browsing, HTTP errors, Http Redirection, Static Content.
- Security » Basic Authentication, Request Filtering, Windows Authentication.
- Turn on Windows Identity Foundation 3.5.
- After you have Run projects on IIS, open the Internet Information Services (IIS) Manger.
- Expand your server node.
- Expand Sites node and click your website.
- In section IIS on the right, double-click Authentication.
- Perform one of the following:
- If you are using Forms authentication, make sure Anonymous Authentication and Forms Authentication are enabled and all other authentications are disabled.
- If you are using Claims-based authentication, make sure only Anonymous Authentication is enabled and all other authentications are disabled.
- Click your website again and in IIS section, double-click Handler Mappings.
- In the right pane click Add Managed Handler… and register the following managed handlers:
- *.svc
- In Request path, enter *.svc
- In Type input field, enter System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, select All verbs.
- On Access tab, select Script.
- *.xamlx
- In Request path, enter *.xamlx
- In Type input field, enter System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, enter GET,HEAD,POST,DEBUG.
- On Access tab, select Script.
- In the right pane click Add Script Map… and register the following script maps:
- *.svc
- In Request path, enter *.svc
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, select All verbs.
- On Access tab, select Script.
- *.svc
- In Request path, enter *.svc
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, select All verbs.
- On Access tab, select Script.
- *.xamlx
- In Request path, enter *.xamlx
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, enter GET,HEAD,POST,DEBUG.
- On Access tab, select Script.
- *.xamlx
- In Request path, enter *.xamlx
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, enter GET,HEAD,POST,DEBUG.
- On Access tab, select Script.
- Close the Internet Information Services (IIS) Manger.
|
Automatic configuration
- Download the PowerShell script and save it on your computer.
- In the context menu of the downloaded file, click Run with PowerShell.
NOTE: When running the PowerShell script, your system may become slower. Keep in mind that the script modifies Windows features that can affect other parts of the system.
Manual configuration
- Install ASP.NET 4.5.
- Open your Control Panel and click Programs and Features » Turn Windows features on or off.
- Turn on Internet Information Services.
- Under Internet Information Services, turn on the following features:
- Web Management Tools » IIS 6 Management Compatibility » IIS Metabase and IIS 6 configuration compatibility.
- Web Management Tools » IIS Management Console, IIS Management Scripts and Tools, and Management Service.
- Under World Wide Web Services, turn on the following:
- Application Development features » .NET Extensibility 3.5, .NET Extensibility 4.5, Application initialization, ASP, ASP.NET 3.5, ASP.NET 4.5, CGI, ISAPI Extensions, ISAPI Filters, Server Side Includes.
- Common HTTP Features » Default Document, Directory Browsing, HTTP errors, Http Redirection, Static Content.
- Security » Basic Authentication, Request Filtering, Windows Authentication.
- Turn on Windows Identity Foundation 3.5.
- After you have Run projects on IIS, open the Internet Information Services (IIS) Manger.
- Expand your server node.
- Expand Sites node and click your website.
- In section IIS on the right, double-click Authentication.
- Perform one of the following:
- If you are using Forms authentication, make sure Anonymous Authentication and Forms Authentication are enabled and all other authentications are disabled.
- If you are using Claims-based authentication, make sure only Anonymous Authentication is enabled and all other authentications are disabled.
- Click your website again and in IIS section, double-click Handler Mappings.
- In the right pane click Add Managed Handler… and register the following managed handlers:
- *.svc
- In Request path, enter *.svc
- In Type input field, enter System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, select All verbs.
- On Access tab, select Script.
- *.xamlx
- In Request path, enter *.xamlx
- In Type input field, enter System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, enter GET,HEAD,POST,DEBUG.
- On Access tab, select Script.
- In the right pane click Add Script Map… and register the following script maps:
- *.svc
- In Request path, enter *.svc
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, select All verbs.
- On Access tab, select Script.
- *.svc
- In Request path, enter *.svc
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, select All verbs.
- On Access tab, select Script.
- *.xamlx
- In Request path, enter *.xamlx
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, enter GET,HEAD,POST,DEBUG.
- On Access tab, select Script.
- *.xamlx
- In Request path, enter *.xamlx
- In Executable input field, enter C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
- Click Request Restrictions.
- On Mappings tab, deselect Invoke Handler if request is mapped to.
- On Verbs tab, enter GET,HEAD,POST,DEBUG.
- On Access tab, select Script.
- Close the Internet Information Services (IIS) Manger.
|