Hi,
how can i create app.config file.I am following the previous project in that app.config file was created i just use the same thing .but it shows the error.
previous project app.config file.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="provider" value="System.Data.SqlClient"/>
<add key ="cnStr"
value="Initial Catalog =PetStore09;Data Source =P2C00946;uid=trg09;pwd=trg09"/>
</appSettings>
</configuration>
my project app.config file.I am using sql server 2005 and data source=mars-104,database=petstore09,username=sa,password=password;how can i create the app.config file.please do the needful.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings >
<add key ="Provider" value ="System.Data.SqlClient"/>
<add key ="CnStr" value ="Initial Catalog=petstore09;Data Source=mars-104;User ID=sa;Password=password"/>
</appSettings>
</configuration>
Best,
Sudheep.