Can I setup a custom MIME type through ASP.NET or some .NET code? I need to register the Silverlight XAML and XAP MIME types in IIS 6.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To add to the master mime type list:
Add a reference to :
‘System.DirectoryServices’ on the .NET add references tab
‘Active DS IIS Namespace Provider’ on the COM add references tab.
To configure a mime type for a specific site, change ..
'IIS://Localhost/MimeMap'to
'IIS://Localhost/W3SVC/[iisnumber]/root'…replacing
'[iisnumber]'with the IISNumber of the website.