.NET error on attempt to login

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.
5/11/2009 9:24:08 AM
Gravatar
Total Posts 26

.NET error on attempt to login

Windows XP service pack 3, postgresql, mojo 2.3.0.1

Just downloaded latest release and setup completed with out any errors. BUT logging on with admin@admin.com and admin gives following .NET error

Server Error in '/' Application.
--------------------------------------------------------------------------------

ERROR: 42601: syntax error at or near ":"
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: Npgsql.NpgsqlException: ERROR: 42601: syntax error at or near ":"

Source Error:


Line 1261:
Line 1262: // Execute the command & return the results
Line 1263: object retval = cmd.ExecuteScalar();
Line 1264:
Line 1265: // Detach the NpgsqlParameters from the command object, so they can be used again
 

Source File: C:\mojo_Source\mojoPortal.Data.pgsql\NpgsqlHelper.cs Line: 1263

Stack Trace:


[NpgsqlException (0x80004005): ERROR: 42601: syntax error at or near ":"]
Npgsql.<ProcessBackendResponses_Ver_3>d__a.MoveNext() in C:\projects\Npgsql2\src\Npgsql\NpgsqlState.cs:831
Npgsql.ForwardsOnlyDataReader.GetNextResponseObject() in C:\projects\Npgsql2\src\Npgsql\NpgsqlDataReader.cs:1118
Npgsql.ForwardsOnlyDataReader.GetNextRowDescription() in C:\projects\Npgsql2\src\Npgsql\NpgsqlDataReader.cs:1136
Npgsql.ForwardsOnlyDataReader.NextResult() in C:\projects\Npgsql2\src\Npgsql\NpgsqlDataReader.cs:1314
Npgsql.ForwardsOnlyDataReader..ctor(IEnumerable`1 dataEnumeration, CommandBehavior behavior, NpgsqlCommand command, NotificationThreadBlock threadBlock, Boolean synchOnReadError) in C:\projects\Npgsql2\src\Npgsql\NpgsqlDataReader.cs:985
Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb) in C:\projects\Npgsql2\src\Npgsql\NpgsqlCommand.cs:570
Npgsql.NpgsqlCommand.ExecuteScalar() in C:\projects\Npgsql2\src\Npgsql\NpgsqlCommand.cs:645
mojoPortal.Data.NpgsqlHelper.ExecuteScalar(NpgsqlConnection connection, CommandType commandType, String commandText, NpgsqlParameter[] commandParameters) in C:\mojo_Source\mojoPortal.Data.pgsql\NpgsqlHelper.cs:1263
mojoPortal.Data.NpgsqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, NpgsqlParameter[] commandParameters) in C:\mojo_Source\mojoPortal.Data.pgsql\NpgsqlHelper.cs:1179
mojoPortal.Data.DBSiteUser.UpdateLastLoginTime(Guid userGuid, DateTime lastLoginTime) in C:\mojo_Source\mojoPortal.Data.pgsql\dbSiteUser.cs:669
mojoPortal.Business.SiteUser.UpdateLastLoginTime() in C:\mojo_Source\mojoPortal.Business\SiteUser.cs:970
mojoPortal.Web.mojoMembershipProvider.ValidateUser(String userName, String password) in C:\mojo_Source\Web\Components\mojoMembershipProvider.cs:1279
System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +60
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +119
System.Web.UI.WebControls.Login.AttemptLogin() +115
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) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
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) +1565

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

5/12/2009 6:54:37 AM
Gravatar
Total Posts 18439

Re: .NET error on attempt to login

Hi,

You say you just downloaded it? Are you sure you didn't download it a while back? Could you try downloading mojoportal-2-3-0-1-pgsqlreleasefiles.zip again and grab the mojoPortal.Data.dll from the /bin folder and replace your existing one and see it it solves the problem. 

Hope it helps,

Joe

5/13/2009 11:07:52 AM
Gravatar
Total Posts 26

Re: .NET error on attempt to login

Sorry should have been more specific - and said just downloaded sources and built with postgres support and got this error

But I'll take the latest SVN version and build mojoPortal.Data.dll

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