I'm working on a .NET Framework 4.5.2 legacy application.
I need the plain ConnectionString of my application, but I don't know how to read it.
Unfortunately the Web.config file of the app, does not have a section "connectionStrings".
Instead, in the Web.config file, there is a section "applicationSettings" which contains the necessary parameters:
<applicationSettings>
<MyApp.Properties.Settings xdt:Transform="Replace">
<setting name="Url" serializeAs="String">
<value>myapp.com</value>
</setting>
<setting name="User" serializeAs="String">
<value>admin</value>
</setting>
<setting name="PW" serializeAs="String">
<value>Password1</value>
</setting>
<setting name="Domain" serializeAs="String">
<value>Fruits</value>
</setting>
<setting name="Port" serializeAs="String">
<value>123</value>
</setting>
<setting name="UseSSL" serializeAs="String">
<value>True</value>
</setting>
</MyApp.Properties.Settings>
</applicationSettings>
I need the plain connection string as a text in notepad - because I need to store the connectionstring in my Azure DevOps environment.
Do you know how to retrieve the connectionString?
By any chance, do you know how to solve this issue?