Udostępnij za pośrednictwem


How to: Import Settings from an IIS Server

After you add an IIS Web server in Logical Datacenter Designer, you can import settings for that server from an existing IIS Web server, rather than configuring them manually. You can perform this task by using the Import IIS Settings Wizard. However, Visual Studio does not save any changes that you make to settings imported through the wizard back to the IIS Web server.

The following list describes permissions that you need to import settings from an IIS Web server:

  • You can run Visual Studio as a normal user except when you are importing settings from a server running Windows 2000 Professional or Windows 2000 Server.

  • If you want to import settings from a server that is running Windows Vista, you need administrator credentials and membership in the IIS_IUSRS group on that server.

  • If you want to import settings from a server that is running Windows XP, you need administrator credentials on that server or credentials with sufficient access to the IIS Metabase.

    Tip

    To change the credentials required to access the IIS Metabase, use the Metabase Explorer included with the Internet Information Services (IIS) 6.0 Resource Kit Tools. For more information, see Internet Information Services (IIS) 6.0 Resource Kit Tools.

You can import settings from IIS versions 5.0, 5.1, and 6.0. Not all settings from future versions of IIS will import successfully. Settings for an IIS Web server appear under the InternetInformationServices resource, which Visual Studio creates automatically for the logical server. Settings for Web site endpoints appear in the WebSites resource. You can view these resources in the Logical Server Settings folder of the Settings and Constraints Editor. For more information, see Finding IIS Settings for ASP.NET Applications and IIS Web Servers.

Note

Application pools did not exist before IIS version 6.0. Therefore, Visual Studio will display errors if you use the wizard to import application pool information from earlier versions of IIS. For more information, see Troubleshooting IIS and ASP.NET Settings Import. Web site endpoints do not contain a setting value for script maps. Therefore, the wizard does not import the value for this setting into the WebSites resource.

To import settings from an IIS Web Server

  1. On the logical datacenter diagram, click an IIS Web Server.

  2. On the Diagram menu, click Import Settings.

    The Import Web Application Settings Wizard appears.

  3. Click Next to continue.

  4. Enter the name or address of the IIS Web server from which you want to import settings.

  5. Enter the appropriate user credentials to access the server.

    If you do not specify credentials, the wizard uses your current credentials.

  6. Select one or more of the following (optional):

    • Import settings from all Web sites and create a new Web site endpoint per site.

    • Import Web server global configuration.

    • Import application pools.

  7. Click Next.

  8. If you chose to import settings from all Web sites, the Confirm Import Settings page appears.

    Otherwise, the Specify Web Sites and Endpoint Bindings page appears, displaying the list of Web sites available for import. If this page appears, select <create new endpoint> under Endpoint to import the Web site settings into a new endpoint. To import the settings into an existing endpoint, select the endpoint name. Click Next to proceed.

  9. Review the settings import list, and click Next to continue.

  10. Click Finish after the wizard imports settings successfully.

If the settings import fails, Visual Studio displays a message that describes the issue. For more information, see Troubleshooting IIS and ASP.NET Settings Import.

See Also

Tasks

How to: Import ASP.NET Settings from an IIS Server