Area: Episerver Commerce
Applies to versions: 10 and higher
Other versions:

Displaying assets [Legacy]

Recommendations [hide]

Note: The functionality described in this article is not available in Commerce versions 11 and up.

Note: Episerver uses the Episerver asset system by default. To enable the legacy asset management system, set the UseLegacyAssetSystem configuration setting to true in the web.config files of both the Commerce Manager and the front-end sites.

Episerver Commerce is configured to use the .xsd http handler by default. To display assets or make them downloadable, add an .xsd Application extension in Internet Information Services (IIS) and configure it the same way as the .axd Application extension.

  1. Go to IIS Manager.
  2. Right-click your website and select Add Virtual Directory...
  3. In the Alias field, enter FileLibrary.
  4. Set the Physical path to a BlobStorage\Public folder.
  5. Select OK to save the settings. The new virtual directory appears under the website.
  6. Double click Handler Mappings under IIS in the main screen. After the Handler Mappings screen opens, check if EcfLibraryHandler name with a path of *.xsd is listed. Its handler should be set to Mediachase.Commerce.Assets.LibraryRequestHandler, Mediachase.Commerce.

    Configuring IIS

    Note: If the installation procedure for Episerver Commerce is properly executed, you can skip steps 7-9. If the handler settings does not appear as above, continue with steps 7-9.

  7. Select Actions > Add Managed Handler....
  8. Enter specified info for each field as below:
    • Request path. *.xsd (make sure you enter a period before "xsd)
    • Type. Mediachase.Commerce.Assets.LibraryRequestHandler, Mediachase.Commerce
    • Name. EcfLibraryHandler
  9. Click OK to create the new handler. The new handler appears in the list.

To verify that the asset management is working, in the Episerver Commerce administration interface, go to Assets and select any file that you saved in the folders. You should be prompted for a location to the save the file, or see a new window that displays the selected file.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Mar 02, 2017

Recommendations [hide]