Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a project on desktop application(front end c# 3.5 and back end SQL SERVER 2005 ).I have created mdf file(service-based database) for project,but whenever I run the application it gives error "Unable to copy file "E:\CarRent\CarRent\carRent.mdf" to "bin\Debug\carREnt.mdf".looking for reply soon.Thank you for time and consideration.
Posted

1 solution

Select your carRent.mdf in solution explorer and go to properties. Set Copy to output to value Copy if newer / Do not copy

Ref:http://msdn.microsoft.com/en-us/library/ms246989.aspx[^]
 
Share this answer
 
v2
Comments
shilpa sonawane 17-Jan-12 4:29am    
I didn't get it.please elaborate it.
Prerak Patel 17-Jan-12 4:50am    
Refer to the msdn link. Try with "Do not copy"
shilpa sonawane 17-Jan-12 4:32am    
I tired it but still the problem is not sloved.
shilpa sonawane 17-Jan-12 5:13am    
Thank you Sir.problem is sloved .Thanks alot.
Prerak Patel 17-Jan-12 5:37am    
You are welcome. Just note that the active database is the one in bin\debug directory.
Mark as answer if your query is solved.

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