Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello guys

I had uploaded my asp.net website and database to server using core ftp.

I had modified my database and trying to upload it to the server using core ftp but it is displaying error like 'Could not access file because it is used by another process'.

because when some one opens database MS Access creates *.ldf file and when database connection is closes it removes but it is not removing. can any one help me to solve my problem.....

Please help to solve problem.

thnx in advance.
Posted
Comments
José Amílcar Casimiro 24-Jun-13 6:23am    
Probably you're leaving your connection object open. Until garbage collection destroys the object you will have the error. I can give you a better response if you show the code.
jagdish123061 28-Jun-13 6:01am    
I have used try ... catch block and closed connection in finally block so there is no error of connection state open

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