Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Dear friends,
i have a problem in my C# windows application setup...
When i installed it in Windows XP then it's worked properly, But When i installed it in windows7 then it's worked in other then primary drive properly but it's shows a error massage in primary drive that is database is read only .
i can't insert data in this database...

if anyone can help me ,,, please reply.

Thanks...
Posted

Did you copied your database from somewhere else? If so, look for the db, right click, uncheck 'Read-only' and grant security permission to 'Everyone' with Full Control.

Then try running your installed program as Administrator, right click, choose 'Run as', then login to the administrator account.

Source: http://bytes.com/topic/net/answers/898686-sql-database-readonly-error-windows-7-a[^]
 
Share this answer
 
Don't think it is an issue with environment. Couple of suggestions:

1. Verify the application login ID in both environments
2. Trace the database log using DB profiler

It will give the exact issue at SQL/DB layer of the application.
 
Share this answer
 

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