asp.net mvc 3 - Changing setting in applicationHost.config to Allow has no effect on 500.19 error -
i have web site using .net 4 , asp.net mvc3 running in iis 7.5. following error:
this configuration section cannot used @ path. happens when section locked @ parent level. locking either default (overridemodedefault="deny"), or set explicitly location tag overridemode="deny" or legacy allowoverride="false".
i found solution here, setting overridemodedefault allow both handlers , modules seems have no effect on site still 500.19 error. tried restarting iis , searching other possible config files not find any. i'm out of ideas , every site i've looked @ suggesting above solution says change it, save , you're done, i'm @ loss on problem. other thing haven't done restarted server, nothing has suggested should necessary.
i recommend using appcmd.exe allow overriding different configuration sections. more info on can found @ (http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/).
to answer question directly, can globally unlock config section using following command.
%windir%\system32\inetsrv\appcmd.exe unlock config -section:path/to/section
if want unlock config section site, can pass in site name.
Comments
Post a Comment