Sunday, October 25, 2009

Missing Mime Types option in IIS

I’ve been playing around with Silverlight 3 recently and until just now I’ve used the Visual Studio Development Server to run and debug the code. But when I changed to using IIS I got the following error when starting the application:

Error: Unhandled Error in Silverlight
Application Code: 2103
Category: InitializeError
Message: Invalid or malformed application: Check manifest

Google gave me several suggestions. One of them was to add the correct MIME types. However, the IIS Manager didn’t provide the “MIME Types” option to let me add them:

missing_mime_option

After feeling a bit puzzled I figured out that I could enable the “MIME Types” option by turning on “Static Content” in “Turn windows features on or off”:

how_to_enable_mime_types

The option appeared in the IIS Manager and it was allready configured with the needed MIME type for Silverlight apps. Problem solved.