Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please, do suggest me to content of web.config file of vb.net project.


XML
<add key="GPS_NEW_DEMO" value="Data Source=Neha-pc\SQLEXPRESS;Initial Catalog=GPS_NEW_DEMO;Integrated Security=SSPI"/>
    <add key="GPS_NEW_DEMO" value="Provider=SQLNCLI;Data Source=Neha-pc\SQLEXPRESS;DataBase=GPS_NEW;Integrated Security=SSPI"/>



this is the code-line giving error to apllication.
GPS_NEW_DEMO is my project name and GPS_NEW is my DataBase
Posted
Updated 1-Apr-15 21:18pm
v3

## Try This Code

<configuration>
XML
<connectionStrings>
  <add name="ConnectionString" connectionString="Data Source=INeha-pc\SQLEXPRESS;Initial Catalog=GPS_NEW_DEMO;User ID=sa;Password=Your_Password;" providerName="System.Data.SqlClient" />
</connectionStrings>

 
Share this answer
 
Thanks!! but database is not on server PC(online)yet...So have you any solution for windows authenticated(offline) database? It means there is no User ID and Password.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900