Bug - Newsletter subscription - 2.3.5.5 - SqlCE

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.
12/12/2010 7:06:11 AM
Gravatar
Total Posts 57

Bug - Newsletter subscription - 2.3.5.5 - SqlCE

Hi
Subscription to a newsletter causes:

There was an error parsing the query. [ Token line number = 1,Token line offset = 46,Token in error = SELECT ]

2010-12-12 16:02:21,581 ERROR mojoPortal.Web.Global - 127.0.0.1-en-US - /home.aspx
System.Data.SqlServerCe.SqlCeException: There was an error parsing the query. [ Token line number = 1,Token line offset = 46,Token in error = SELECT ]
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at mojoPortal.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlCeParameter[] commandParameters) in D:\mojoportal_ce0c00ba60be\mojoPortal.Data.SqlCe\SqlHelper.cs:line 89
at mojoPortal.Data.DBLetterInfo.UpdateSubscriberCount(Guid letterInfoGuid) in D:\mojoportal_ce0c00ba60be\mojoPortal.Data.SqlCe\DBLetterInfo.cs:line 473
at mojoPortal.Business.LetterInfo.UpdateSubscriberCount(Guid letterInfoGuid) in D:\mojoportal_ce0c00ba60be\mojoPortal.Business\ELetter\LetterInfo.cs:line 390
at mojoPortal.Web.ELetterUI.Subscribe.DoSubscribe(LetterInfo letter, String email) in D:\mojoportal_ce0c00ba60be\Web\Controls\Subscribe.ascx.cs:line 248
at mojoPortal.Web.ELetterUI.Subscribe.DoSubscribe() in D:\mojoportal_ce0c00ba60be\Web\Controls\Subscribe.ascx.cs:line 192
at mojoPortal.Web.ELetterUI.Subscribe.btnSubscribe_Click(Object sender, EventArgs e) in D:\mojoportal_ce0c00ba60be\Web\Controls\Subscribe.ascx.cs:line 165
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2.3.5.5 - SqlCE

Regards

12/12/2010 10:54:11 AM
Gravatar
Total Posts 18439

Re: Bug - Newsletter subscription - 2.3.5.5 - SqlCE

Thanks for the bug report.

This is now fixed in the source code repository and will be fixed in the next release.

Best,

Joe

12/12/2010 2:31:27 PM
Gravatar
Total Posts 57

Re: Bug - Newsletter subscription - 2.3.5.5 - SqlCE

Hi

There is still a bug in newsletter under sqlce.When you try to remove a subscriber from newsletter you receive:

 ERROR - mojoPortal.Web.Global - 127.0.0.1-en-US - /eletter/LetterSubscribers.aspx?l=9157f460-7ced-4017-bf73-595e63ee6cef
System.IndexOutOfRangeException: Name
at System.Data.SqlServerCe.FieldNameLookup.GetOrdinal(String fieldName)
at System.Data.SqlServerCe.SqlCeDataReader.GetOrdinal(String name)
at System.Data.SqlServerCe.SqlCeDataReader.get_Item(String name)
  at mojoPortal.Business.SubscriberRepository.Fetch(Guid guid) in D:\mojoportal_ce0c00ba60be\mojoPortal.Business\ELetter\SubscriberRepository.cs:line 69
at mojoPortal.Web.ELetterUI.LetterSubscribersPage.grdSubscribers_RowCommand(Object sender, GridViewCommandEventArgs e) in D:\mojoportal_ce0c00ba60be\Web\eletter\LetterSubscribers.aspx.cs:line 149

 

 

12/13/2010 6:34:50 AM
Gravatar
Total Posts 18439

Re: Bug - Newsletter subscription - 2.3.5.5 - SqlCE

Hi Malkom,

Thanks! This one is now fixed in the source code repository.

Best,

Joe

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