Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys.
i have a asp.net website and i uploaded but i have got the bellow error , i don't know how to solve it .any help will be appreciated
here is the error:

System.Data.OleDb.OleDbException: 'c:\windows\system32\inetsrv\App_Data\Dictionary.mdb' is not a valid path.  Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.<br />
   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)<br />
   at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)<br />
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)<br />
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)<br />
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<br />
   at System.Data.OleDb.OleDbConnection.Open()<br />
   at AjaxDictionary._Default.GetTrans(String inWord) in C:\wamp\www\a\ppp\Translate.aspx.cs:line 37


Edit: Moved additional information from answer below and added text tags
it is ok on local server but on server i have such error
i don't know why
Posted
Updated 15-Apr-12 20:28pm
v3

Hi,
My suggestion is to test that Db in your Server Explorer in the Visual Studio prior to connecting to it. Then, you can use the ConnectionString which Server Explorer creates to set as your ConnectionString.

I hope it helps,
Cheers
 
Share this answer
 
Comments
VJ Reddy 14-Apr-12 6:48am    
Good advice. 5!
Reza Ahmadi 14-Apr-12 6:54am    
Thanks VJ!
When you copied your application from your development computer to the web computer, you forgot to copy Dictionary.mdb. Copy that file also to the server - you may need to adjust the connection string depending on the newlocation of the database file on the server.
 
Share this answer
 
Comments
VJ Reddy 16-Apr-12 2:32am    
Good suggestion. 5!

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