ClientException "Attempt to write to read-only page" on SaveChanges()

Jul 16, 2015 at 7:17 AM
Hi guys,

I have a problem with the Method Datacontext.SaveChanges(). Evertytime I call the method, I get a ClientException with the message "Attempt to write to a read-only page". The problem is, I get the exception everytime I call the method. And I don't know how I made a page read-only in my code :) Is there any documentation about this error?

Greetings
René
Coordinator
Jul 16, 2015 at 8:18 AM
Hi René,

That error may indicate a problem in the data store itself; or it may be something to do with the way your code is calling the SaveChanges method. Do you get the error when you start with a new empty store or is it just happening on one particular store? Also if you can share a bit of code or a description of how the application ends up at the point where it attempts to save changes, that would be really helpful.

Cheers

Kal