Can’t deploy Devart.Data.SQLite MVC4 web application to a local server
Posted: Fri 22 Mar 2013 13:44
I can’t deploy Devart.Data.SQLite MVC4 web application to a local server. Everything works fine on my localhost.
Here are the steps that I used to build and deploy:
1) In Visual Studios 2012 New ASP.NET MVC 4 (4.5) Web Application
2) Reference purchased version Devart.Data, Devart.Data.SQLite, Devart.Data.SQLite.Web
3) Using ADO.NET Entity Data Model Import a SQLite model which is in the App_Data folder.
4) Run debug mode in visual studios. I am able to read and write to the database.
5) Deploy to a local server using MS Deploy .
6) Open website on server in Chrome. I can read from the database. When I try to create a record I get a Devart.Data.SQLite.SQLiteException: SQLite error cannot rollback - no transaction is active!
7) A SQLite Journal file has been created in the App_Data directory. Once this happens I can no longer access through the web portal. If I delete the Journal file I can once again read from the database and I can see the last transaction and it did save.
Server Error in '/SQliteTest' Application.
________________________________________
SQLite error
cannot rollback - no transaction is active
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Devart.Data.SQLite.SQLiteException: SQLite error
cannot rollback - no transaction is active
Here are the steps that I used to build and deploy:
1) In Visual Studios 2012 New ASP.NET MVC 4 (4.5) Web Application
2) Reference purchased version Devart.Data, Devart.Data.SQLite, Devart.Data.SQLite.Web
3) Using ADO.NET Entity Data Model Import a SQLite model which is in the App_Data folder.
4) Run debug mode in visual studios. I am able to read and write to the database.
5) Deploy to a local server using MS Deploy .
6) Open website on server in Chrome. I can read from the database. When I try to create a record I get a Devart.Data.SQLite.SQLiteException: SQLite error cannot rollback - no transaction is active!
7) A SQLite Journal file has been created in the App_Data directory. Once this happens I can no longer access through the web portal. If I delete the Journal file I can once again read from the database and I can see the last transaction and it did save.
Server Error in '/SQliteTest' Application.
________________________________________
SQLite error
cannot rollback - no transaction is active
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Devart.Data.SQLite.SQLiteException: SQLite error
cannot rollback - no transaction is active