database is read-only

Posted by Only4ram under Windows Forms on 9/5/2015 | Points: 10 | Views : 1312 | Status : [Member] | Replies : 2
Hi,

I had developed windows application with C# and converted to EXE file.When i install that exe to windows 7 i got this error when i run that project.

"Failed to update database "c:\Program Files\Test\Test.mdf" because that database is read-only."

but if we install with windows xp it is working good.

Can any one please help me it is very urgent?



thanks and regards

Ram.




Responses

Posted by: Sheonarayan on: 9/6/2015 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
It simply says that your database file / folder is read only. Its the default behavior of different operating system. Simply go to Property of Test folder in Windows 7 and un check Read only check box to make that folder and files writable and this error should be resolved.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Only4ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Only4ram on: 9/8/2015 [Member] Starter | Points: 25

Up
0
Down
Dear Sheo Narayan,

I do not want to do any updation in installed program is there any other way to fix that issue?

Only4ram, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response