Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<appSettings>
   <add key="dbVisitorManagement1" value="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=dbVisitorManagement;Data Source=SHREE-PC"/>
 </appSettings>

XML



this is what I had done in my app.config file. but i had got an error as connectionString is not properly implemented...
Posted
Comments
[no name] 20-Sep-13 6:05am    
What kind of application you are developing...?? win or web..??
Member 10172502 20-Sep-13 6:05am    
win
[no name] 20-Sep-13 6:07am    
Check my solution..

configuring-connection-string-in-app-config-file-during-runt/[^]

Use connectionstring tag instead of appsettings
 
Share this answer
 
v2
Put it in ConnectionStrings not appSettings!
 
Share this answer
 
XML
<appSettings>
   <add key="dbVisitorManagement1" value="Provider=SQLOLEDB.1;Integrated Security=True;Persist Security Info=False;Database=dbVisitorManagement;Server=SHREE-PC"/>
 </appSettings>
 
Share this answer
 
v3
Comments
Member 10172502 20-Sep-13 6:16am    
it gives me exception as ArgumentException was unhandled.
keyword is not supported : provider.
manikjeyam 20-Sep-13 6:32am    
Now check My answer
<add key="ConnectionString">
      value="Server=localhost;Database=Northwind;Integrated
             Security=false;User Id=sa;Password=;" /></add>
 
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