I have the app.config file which contains the following code for my Windows forms application.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
</startup>
<connectionStrings>
<add name = "myConnection"
connectionString = "Data Source=(LocalDB)\v11.0; AttachDbFilename = "C:\Users\USER\Documents\visual studio 2012\Projects\AliceAoi\WindowsFormsApplication2\Database2.mdf";Integrated Security=True"
providerName = "System.Data.SqlClient" />
</connectionStrings>
</configuration>
connectionString
attribute is giving error. Using \\
instead of \
doesn't help. It states that white space required.
How can I fix this?