Reputation: 33088
I'm writing a .NET app and I want to set the enforceFIPSPolicy
option to false, but I would like to do it in code rather than in the config file (app.config or web.config). Is this possible?
This is what it's supposed to look like in the config file:
<configuration>
<runtime>
<enforceFIPSPolicy enabled="false"/>
</runtime>
</configuration>
Upvotes: 2
Views: 807
Reputation: 81660
No. web/app.config
is loaded once at the application startup. Changing values of the file will have no effect.
If there is no such API to change the value in runtime, you are out of options I am afraid.
Upvotes: 1