
MimeMapElement = mimeMapElement1 = staticContentCollection.CreateElement("mimeMap") Using (ServerManager serverManager = new ServerManager())Ĭonfiguration config = serverManager.GetWebConfiguration("Default Web Site") ĬonfigurationSection staticContentSection = config.GetSection("system.webServer/staticContent") ĬonfigurationElementCollection staticContentCollection = staticContentSection.GetCollection() ĬonfigurationElement mimeMapElement = staticContentCollection.CreateElement("mimeMap") AppCmd.exe appcmd.exe set config "Default Web Site" -section:system.webServer/staticContent /+""Īppcmd.exe set config "Default Web Site" -section:system.webServer/staticContent /+""
Zoomify savehandlerpath code#
The following code samples add the file types for MIDI System Exclusive (Sysex) Messages and Guitar Tablature (TAB) files to IIS, thereby enabling clients to download these file types. The following configuration sample adds the file types for MIDI System Exclusive (Sysex) Messages and Guitar Tablature (TAB) files to IIS, thereby enabling clients to download these file types.

See the Default Configuration section later in this topic for the complete list of default values. Specifies the type of file and the application that uses this kind of file name extension. See the Default Configuration section later in this topic for the complete list of default values Specifies a unique file name extension for a MIME type. In the Add MIME Type dialog box, add the file name extension and MIME type, and then click OK. In the Home pane, double-click MIME Types. In the Connections pane, go to the site, application, or directory for which you want to add a MIME type.

Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.On the taskbar, click Start, and then click Control Panel.If you are using Windows Vista or Windows 7: On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.If you are using Windows Server 2008 or Windows Server 2008 R2: Click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.Hold down the Windows key, press the letter X, and then click Control Panel.
Zoomify savehandlerpath windows 8#
If you are using Windows 8 or Windows 8.1:
Zoomify savehandlerpath how to#
How To How to add a MIME type to a Web site or application The element of the element is included in the default installation of IIS 7. The element replaces the IIS 6.0 MimeMap metabase property. The element of the element was introduced in IIS 7.0. The element was not modified in IIS 10.0.

This behavior prevents unauthorized access to files that do not have mappings in the IIS 7 configuration settings. IIS 7 will not return file types that are not added to the element or that have mappings in the element by default.
