Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuration section encryption is not supported

I have encrypted the Identity section of my Web.config file using the below command.

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef ContainerName C:\project -prov RsaProvider

Now when i run my website on the server after exporting my keys and importing them on the server it give me the below error.

Configuration section encryption is not supported

Any Idea how to fix this?

like image 913
zlsmith86 Avatar asked Feb 11 '14 22:02

zlsmith86


1 Answers

To be able to unencrypt the sytem.web/identity section you must have this entry as the last line of your section.

<validation validateIntegratedModeConfiguration="false"/>

Example:

<system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
        </modules>
        <handlers>
            <remove name="UrlRoutingHandler" />
        </handlers>
    <validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
like image 107
buffalope Avatar answered Oct 21 '22 10:10

buffalope