c# - Access denied Error in restoring SQL Server database WPF -
in application if application installed first time on client machine, application restore there database if database dose not exsist .. included .bak database according this artical :
- create folder under app in vs name e.g. "datafiles"
- add files folder using add link in dialog box after selecting add existing item on folder
- mark files copy if newer (copy output directory property)
- make sure build action content
when publish files put in publish folder , part of application installation
until every thing work fine..
the probelm when trieng restore database code, vs :
"cannot open backup device, operating system error 5 (access denied.)."
i tried run vs administrator not make change..
please can 1 me solve issue
thanks in advance
abdusalam
Comments
Post a Comment