Sqlite: System.IndexOutOfRangeException

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/5/2013 4:49:11 PM
Gravatar
Total Posts 2

Sqlite: System.IndexOutOfRangeException

 

 

Hi Mojo gurus,

above all many thanks for your great project.

I am experiencing this annoying exception problem trying to use the blog module (I have upgraded some days ago from 2.3.7.x, but I am trying the blog only now).

Here is system information and the stack trace logged in the event log:

System information
mojoPortal Version 2.3.9.7 SQLite
Operating System Microsoft Windows NT 5.2.3790 Service Pack 2
ASP.NET Infov4.0.30319 Running in Full Trust
 

Stack trace in event log

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time (UTC): 05/07/2013 21.22.46 
Event ID: 5917f173757b4d69a9c7d602c1de8f3e 
Event sequence: 9 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1722088333/Root-1-130175328556153184 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: ********
    Machine name: ********* 
 
Process information: 
    Process ID: 4368 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
 
Exception information: 
    Exception type: IndexOutOfRangeException 
    Exception message: Index was outside the bounds of the array.
   at Mono.Data.Sqlite.SqliteDataReader.GetSqliteType(Int32 i)
   at Mono.Data.Sqlite.SqliteDataReader.GetValue(Int32 i)
   at Mono.Data.Sqlite.SqliteDataReader.get_Item(String name)
   at mojoPortal.Business.Module.PopulateFromReader(IDataReader reader)
   at mojoPortal.Business.Module.GetModule(Int32 moduleId, Int32 pageId)
   at mojoPortal.Business.Module..ctor(Int32 moduleId, Int32 pageId)
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.LoadSettings()
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
 
Request information: 
    Request URL: http://www.******.***/Admin/ModuleSettings.aspx?mid=178&pageid=110 
    Request path: /Admin/ModuleSettings.aspx 
    User host address: *.*.*.*
    User: ************ 
    Is authenticated: True 
    Authentication Type: Forms 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 1 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at Mono.Data.Sqlite.SqliteDataReader.GetSqliteType(Int32 i)
   at Mono.Data.Sqlite.SqliteDataReader.GetValue(Int32 i)
   at Mono.Data.Sqlite.SqliteDataReader.get_Item(String name)
   at mojoPortal.Business.Module.PopulateFromReader(IDataReader reader)
   at mojoPortal.Business.Module.GetModule(Int32 moduleId, Int32 pageId)
   at mojoPortal.Business.Module..ctor(Int32 moduleId, Int32 pageId)
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.LoadSettings()
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

7/6/2013 12:10:40 PM
Gravatar
Total Posts 18439

Re: Sqlite: System.IndexOutOfRangeException

Hi,

I just sent you an email with a patched version of mojoPortal.Data.dll, can you confirm that it fixes the problem?

Thanks,

Joe

7/6/2013 5:41:37 PM
Gravatar
Total Posts 2

Re: Sqlite: System.IndexOutOfRangeException

Well done Joe!

Now it's working fine.

Out of curiosity, what was the problem, and where can I find the source code of your patch ?

 

Thanks again,

M.

7/7/2013 12:26:46 PM
Gravatar
Total Posts 18439

Re: Sqlite: System.IndexOutOfRangeException

You can view the changeset here, it was missing a field in a couple of select statements

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