Require SSL on MVC View


With web forms I can designate an individual ASPX page to require SSL and IIS will ask the user to pick a certificate from their CAC. However, in IIS Manager on the server for an MVC site, the individual views are not listed so I cannot require SSL for a particular view. Is there any way to do this?

My web.config has been changed:

 <location path="FileSharing/Welcome" allowOverride="true"></location>
  <location path="FileSharing/Index" allowOverride="true">
    <access sslFlags="Ssl,SslNegotiateCert,SslRequireCert"/>

Error 500.19

Error Code 0x80070021

Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
asked on Stack Overflow Jan 14, 2016 by Dean.DePue • edited Feb 6, 2017 by Dean.DePue

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0