I don't know why but I have exception "Attempt to write a read-only database" by calling SubmitChanges()
by Devart.Data.Linq.LinqCommandExecutionException.CanThrowLinqCommandExecutionException(String message, Exception e)
by Devart.Data.Linq.DataProvider.b(String A_0, IEnumerable`1 A_1, IEnumerable`1 A_2, Boolean A_3)
by Devart.Data.Linq.DataProvider.a(String A_0, IEnumerable`1 A_1, IEnumerable`1 A_2, Boolean A_3)
by Devart.Data.Linq.Engine.SubmitCommandBuilder.a(IObjectEntry A_0)
by Devart.Data.Linq.Engine.b4.a(IObjectEntry[] A_0, ConflictMode A_1, a A_2)
by Devart.Data.Linq.Engine.b4.a(ConflictMode A_0)
by Devart.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
by Devart.Data.Linq.DataContext.SubmitChanges()
By previous tests all worked fine but in the table was auto incremented key and was no relation.
This time I need to create tree nodes, so I create first all nodes in memory and then store it to database.
What you could suggest me to test/to check why I receive this message? I enable the log but can't see there any error message.
Attempt to write a read-only database
Re: Attempt to write a read-only database
Please specify the version and edition of LinqConnect you are working with, e.g. Professional, Metro, etc.
Please also provide us with a small test project (with LinqConnect model and test database file) with which the issue is reproducible, so that we are able to investigate the issue in more details and find the solution for you in a shortest time.
JIC: It is not necessary to send us the whole project, you could exclude those parts of the project that should not affect the main scenario.
Please also provide us with a small test project (with LinqConnect model and test database file) with which the issue is reproducible, so that we are able to investigate the issue in more details and find the solution for you in a shortest time.
JIC: It is not necessary to send us the whole project, you could exclude those parts of the project that should not affect the main scenario.
Re: Attempt to write a read-only database
Thank you for a quick response. I'll do it but later because I switched to another task yet. I worked under Windows.
By the way, where is I can found samples for LinqConnect?
By the way, where is I can found samples for LinqConnect?
Re: Attempt to write a read-only database
LinqConnect documentation is available here:
http://www.devart.com/linqconnect/docs/?
http://www.devart.com/linqconnect/demo.html
LinqConnect samples are available in the "C:\Program Files (x86)\Devart\dotConnect\Linq\Samples\" folder after installing LinqConnect (if the Samples component has been selected during installation).
If this information doesn't help, please describe the scenario you are interested in, so that we are able to provide you with the most suitable information.
http://www.devart.com/linqconnect/docs/?
http://www.devart.com/linqconnect/demo.html
LinqConnect samples are available in the "C:\Program Files (x86)\Devart\dotConnect\Linq\Samples\" folder after installing LinqConnect (if the Samples component has been selected during installation).
If this information doesn't help, please describe the scenario you are interested in, so that we are able to provide you with the most suitable information.
Re: Attempt to write a read-only database
I think, I have found the reason.
I've working in Visual Studio and opened simultaneously Entity Designer with database viewer.
And ED lock the database.
What the good news - that after last update it was corrected.
Thank you.
I've working in Visual Studio and opened simultaneously Entity Designer with database viewer.
And ED lock the database.
What the good news - that after last update it was corrected.
Thank you.
Re: Attempt to write a read-only database
Thank you for the response.
If you have any further questions regarding working with LinqConnect, feel free to contact us.
If you have any further questions regarding working with LinqConnect, feel free to contact us.