79170841

Date: 2024-11-08 16:29:33
Score: 0.5
Natty:
Report link

To answer to comments asking to move only some settings to a custom file I found the file attribute that should help:

in web.config:

...
<appSettings file="otherSettings.config">
    <add key="owin:AutomaticAppStartup" value="false" />
    <add key="Environment" value="Test" />
</appSettings>

in otherSettings.config:

 <appSettings>
    <add key="Usuer" value="myUser" />
    <add key="Password" value="thePassword" />
 </appSettings>

I tried and the app reads both settings in the web.config file and in the otherSettings.config. HTH

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vjncenzo