Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,
In my web application I have to load mdb file into SQL database.For that i used following provider with connection string

con.Open("Provider=SQLOLEDB.1;" & System.Configuration.ConfigurationManager.AppSettings("strConString"))


it works good when i run application with Microsoft Visual Studio 2008 Development Environment.But when i make web setup of an application it gives error on same line.

how to solve this problem???
Posted
Updated 9-Apr-12 0:55am
v2

1 solution

Did you change the web.config file to reflect the actual location of the file on the web host?
I'd start by checking there.
 
Share this answer
 
Comments
YOGESH DHAGE 9-Apr-12 7:04am    
No friend no change in web.config file.I keep its as it is in web application folder
OriginalGriff 9-Apr-12 7:16am    
What is the web.config connection string set to?
YOGESH DHAGE 10-Apr-12 5:25am    
<add key="strConString" value="Initial Catalog=proSES;Data Source=server;User Id=sa">
OriginalGriff 10-Apr-12 5:44am    
Yes?

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