本文介绍了需要错误解决数据库mdf文件的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在桌面应用程序(前端c#3.5和后端SQL SERVER 2005)上开发一个项目.我已经为该项目创建了mdf文件(基于服务的数据库),但是每当我运行该应用程序时,它都会显示错误消息无法将文件"E:\ CarRent \ CarRent \ carRent.mdf"复制到"bin \ Debug \ carREnt.mdf".希望尽快回复.感谢您的时间和考虑.
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.
推荐答案在解决方案资源管理器中选择carRent.mdf并转到属性,将Copy to output设置为值Copy if newer / Do not copy 参考: msdn.microsoft/en-us/library/ms246989.aspx [ ^ ] Select your carRent.mdf in solution explorer and go to properties. Set Copy to output to value Copy if newer / Do not copy Ref:msdn.microsoft/en-us/library/ms246989.aspx[^]
更多推荐
需要错误解决数据库mdf文件的解决方案
发布评论