I have a fresh install of IIS 7, and under the Handler Mappings, I see a section for Disabled mappings and a section for Enabled. I want to disable a bunch of extensions (cshtml, aspq, etc). That is, I want to "move" them from the Enabled section to the Disabled section without deleting them. How do I do this?

(EDIT: Oops. It's IIS 7, not 7.5.)

link|improve this question
feedback

2 Answers

Right-click on the Mapping, and go to Edit Feature Permissions.

Un-check "Read" and "Script". It will move to the Disabled section.

link|improve this answer
I tried this, and it disabled everything (not just .cshtml). – anon May 14 '11 at 21:10
@anon - there's something fishy going on then. Although I must admit I only do this on IIS 7.5, not IIS7 – Mark Henderson May 14 '11 at 21:23
feedback

I don't think it's fishy, just a bug in IIS or that version, I have the same problem on a 2008 machine I have, in the end I just removed all of them, which is a real pain if I ever want them back and there is a lot of them for asp and .NET so guess I will never use asp etc. on that machine it was conflicting with other applications anyway.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.