HOW TO

Deploy a Silverlight application to IIS 6.0 and 7.0

Last Published: April 25, 2020

Summary

Instructions provided describe the steps to deploy a Silverlight application to Internet Information Services v6.0 and v7.0 (IIS).

Procedure



  1. Create a new folder called 'SilverlightApplicationSample' under the wwwroot of the production server.
  2. Copy the 'ClientBin' folder and paste it under the SilverlightApplicationSample folder. Please note that the ClientBin folder has the *.xap file.
  3. Copy the file silverlight.js, and paste under the SilverlightApplicationSample folder.
  4. Copy the web site *.html file and paste it under the SilverlightApplicationSample folder.
    [O-Image]
  5. Convert the SilverlightApplicationSample folder to an application. Go to the IIS Manager:
    [O-Image]
    • For IIS 6, right-click the SilverlightApplicationSample folder and select Properties. In the Properties dialog box, click the Create button to create an application.
    [O-Image]
    • For IIS 7, right-click the SilverlightApplicationSample folder and select Convert to Application. In the Add Application dialog box, click OK to create an application.
    [O-Image]

  6. Silverlight applications are downloaded by browsers through XAP files. These XAP files are essentially .zip files that contain the assembly manifest file, and one or more assemblies. Therefore, make sure the .xap, .xaml, and .xbap extensions are included in the MIME types for the IIS.

    Go to IIS Manager (refer to the images in Step 5, above):

    • For IIS 6, right click on the server name and select Properties. In the Properties dialog box, click MIME Types button.
    [O-Image]
    In the MIME Types dialog box, click New button to enter the following MIME types.
    [O-Image]
    • For IIS 7, click on the server name in the left panel. In the right panel, choose MIME Types.
    [O-Image]
    In the MIME Types dialog, click the Add button to enter the following MIME types.
    [O-Image]
    .xap application/x-silverlight-app
    .xaml application/xaml+xml
    .xbap application/x-ms-xbap

    If the above MIME types already exist, there is no need to add them again.

Article ID:000011303

Software:
  • ArcGIS API for Silverlight Prev

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic