ArgumentException when signing in

Kim Hugener-Ohlsen's Avatar

Kim Hugener-Ohlsen

05 Nov, 2012 07:47 AM

Hi HgLab,

I'm trying to setup HgLab and gets so far that I have completed the setup (Entered name, email, user and pwd)
I can also confirm that the values has been saved in the db.

Afte that I'm presented to the login screen where I try to login with my newly created user.
When doing so I get this error:

Server Error in '/HgLab' Application.

Value cannot be null or empty.
Parameter name: url
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: System.ArgumentException: Value cannot be null or empty. Parameter name: url

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:

[ArgumentException: Value cannot be null or empty. Parameter name: url]
System.Web.Mvc.Controller.Redirect(String url) +146 HgLab.Areas.Sitefront.Controllers.SessionController.Signin(SigninModel model) in d:\Projects\hglab\src\HgLab\Areas\Sitefront\Controllers\SessionController.cs:54 lambda_method(Closure , ControllerBase , Object[] ) +127 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext

Do you have any suggestions?

Best regards
Kim

  1. 1 Posted by Kim Hugener-Ohl... on 05 Nov, 2012 08:44 PM

    Kim Hugener-Ohlsen's Avatar

    Hi Again,

    Forgot to mention that we're running on Win8 x64 with IIS 8.

    -Kim

  2. Support Staff 2 Posted by Anton Gogolev on 06 Nov, 2012 05:38 AM

    Anton Gogolev's Avatar

    Hello Kim!

    That's a known bug and it will be addressed in a nearest update. I'll ping you whenever it's available for download.

    Sorry for the long delay and for the inconvenience.

  3. Support Staff 3 Posted by Anton Gogolev on 06 Nov, 2012 01:04 PM

    Anton Gogolev's Avatar

    Hello again.

    HgLab 0.1.356 fixes your problem.

  4. Anton Gogolev closed this discussion on 06 Nov, 2012 01:04 PM.

  5. kho re-opened this discussion on 06 Nov, 2012 04:37 PM

  6. 4 Posted by kho on 06 Nov, 2012 04:37 PM

    kho's Avatar

    This comment was split into a new discussion: ArgumentException when signing in

    Hi Anton,

     

    Thanks for the new version, I just tried it out.

     

    However when I try to sign up Again I receive the following error:

     

    Best regards

    Kim

     

    Server Error in '/HgLab' Application.

    Cannot insert the value NULL into column 'CatalogID', table 'HgLab.dbo.User'; column does not allow nulls. INSERT fails.
    The statement has been terminated.
    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: System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'CatalogID', table 'HgLab.dbo.User'; column does not allow nulls. INSERT fails.
    The statement has been terminated.

    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:

    [SqlException (0x80131904): Cannot insert the value NULL into column 'CatalogID', table 'HgLab.dbo.User'; column does not allow nulls. INSERT fails.
    The statement has been terminated.]
       System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1753346
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5295154
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +242
       System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1682
       System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +269
       System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) +1325
       System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +175
       System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +205
       System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +160
       System.Data.SqlClient.SqlCommand.ExecuteBatchRPCCommand() +38
       System.Data.SqlClient.SqlCommandSet.ExecuteNonQuery() +286
       NHibernate.AdoNet.SqlClientSqlCommandSet.ExecuteNonQuery() +39
       NHibernate.AdoNet.SqlClientBatchingBatcher.DoExecuteBatch(IDbCommand ps) +222

    [GenericADOException: could not execute batch command.[SQL: SQL not available]]
       NHibernate.AdoNet.SqlClientBatchingBatcher.DoExecuteBatch(IDbCommand ps) +273
       NHibernate.AdoNet.AbstractBatcher.ExecuteBatchWithTiming(IDbCommand ps) +123
       NHibernate.AdoNet.AbstractBatcher.ExecuteBatch() +62
       NHibernate.AdoNet.AbstractBatcher.OnPreparedCommand() +4
       NHibernate.AdoNet.AbstractBatcher.PrepareBatchCommand(CommandType type, SqlString sql, SqlType[] parameterTypes) +171
       NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) +357
       NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) +168
       NHibernate.Action.EntityInsertAction.Execute() +180
       NHibernate.Engine.ActionQueue.Execute(IExecutable executable) +34
       NHibernate.Engine.ActionQueue.ExecuteActions(IList list) +59
       NHibernate.Engine.ActionQueue.ExecuteActions() +16
       NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) +160
       NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) +92
       NHibernate.Impl.SessionImpl.Flush() +345
       NHibernate.Transaction.AdoTransaction.Commit() +298
       HgLab.Core.Framework.Persistence.Transaction.CommitOwnedTransaction(ISessionFactory sessionFactory, Boolean ownedSession) in d:\Projects\hglab\src\HgLab.Core\Framework\Persistence\Transaction.cs:101
       HgLab.Core.Framework.Persistence.Transaction.Commit(ISessionFactory sessionFactory, Boolean ownedTransaction, Boolean ownedSession) in d:\Projects\hglab\src\HgLab.Core\Framework\Persistence\Transaction.cs:88
       HgLab.Core.Framework.Persistence.Transaction.Commit() in d:\Projects\hglab\src\HgLab.Core\Framework\Persistence\Transaction.cs:46
       HgLab.Areas.Dashboard.Controllers.SetupController.Setup(SetupModel model) in d:\Projects\hglab\src\HgLab\Areas\Dashboard\Controllers\SetupController.cs:70
       lambda_method(Closure , ControllerBase , Object[] ) +104
       System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +208
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
       System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +56
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +22
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +190
       System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
       System.Web.Mvc.Controller.ExecuteCore() +105
       System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +88
       System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
       System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34
       System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
       System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
       System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +47
       System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
       System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9629708
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

     

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

    Sendt fra Windows Mail

    Fra: Anton Gogolev
    Sendt: ‎6‎. ‎november‎ ‎2012 ‎14‎:‎03
    Til: [email blocked]
    Emne: Re: ArgumentException when signing in [Problems #10]

  7. Support Staff 5 Posted by Anton Gogolev on 07 Nov, 2012 09:48 AM

    Anton Gogolev's Avatar

    Fixed in HgLab 0.1.362.

  8. Anton Gogolev closed this discussion on 07 Nov, 2012 09:48 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM