Friday, February 24, 2012

Database Readonly

I copied over a small website to 2003 Web Server and got:

Exception Details:System.Data.SqlClient.SqlException:Failed to update database"D:\INETPUB\WWWROOT\LUNCHCOUNT\APP_DATA\LUNCHCOUNT.MDF" because thedatabase is read-only.

It works just fine in VS - what to do?

Thanks

Whoops - should have followed the 10 minute rule. Found the folder didn't have Write turned on it permissions.|||Check if the MDF file is readonly file and change the permissions.

No comments:

Post a Comment