Attempt to write a read-only database - sqlLite

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
12/2/2011 10:34:23 PM
Gravatar
Total Posts 2
Sachin

Attempt to write a read-only database - sqlLite

Hi,

I have created a mojoportal site but I cannot login, the site works fine though. Following is the error I get when login:

Server Error in '/' Application.

Attempt to write a read-only database
attempt to write a readonly database

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: Mono.Data.Sqlite.SqliteException: Attempt to write a read-only database
attempt to write a readonly database

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqliteException (0x80004005): Attempt to write a read-only databaseattempt to write a readonly database] Mono.Data.Sqlite.Sqlite3.Reset(SqliteStatement stmt) +359 Mono.Data.Sqlite.Sqlite3.Step(SqliteStatement stmt) +195 Mono.Data.Sqlite.SqliteCommand.ExecuteNonQuery() +65 mojoPortal.Data.SqliteHelper.ExecuteNonQuery(IDbConnection connection, String commandText, IDataParameter[] parameters) +196 mojoPortal.Data.SqliteHelper.ExecuteNonQuery(String connectionString, String commandText, IDataParameter[] parameters) +80 mojoPortal.Data.DBSiteUser.UpdateLastLoginTime(Guid userGuid, DateTime lastLoginTime) +355 mojoPortal.Web.mojoMembershipProvider.ValidateUser(String userName, String password) +533 System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +60 System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +129 System.Web.UI.WebControls.Login.AttemptLogin() +127 System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +125 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +167 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Kindly Help.

Regards,

12/3/2011 1:00:08 AM
Gravatar
Total Posts 2
Sachin

Re: Attempt to write a read-only database - sqlLite

Problem solved.

My hosting provider does grant write access to folders through my hosting control panel for windows hosting. Had to request the hosting provider support to grant permission to web process on ./Data/ folder. Once web process is granted write access the site works.

Sorry to bother you.

Regards,

You must sign in to post in the forums. This thread is closed to new posts.