ArgumentException when signing in

kho's Avatar

kho

07 Nov, 2012 09:32 AM

This comment was split from the 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, Action1 wrapCloseInAction) +1753346 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 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, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +175 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 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, IDictionary2 parameters) +208 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +27 System.Web.Mvc.<>cDisplayClass15.b12() +56 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +256 System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary2 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__DisplayClass81.b7(IAsyncResult _) +10 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55 System.Web.Mvc.<>cDisplayClasse.bd() +47 System.Web.Mvc.SecurityUtil.b0(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]

  1. Support Staff 1 Posted by Anton Gogolev on 07 Nov, 2012 09:34 AM

    Anton Gogolev's Avatar

    What a shame. Fixed in HgLab 0.1.362.

    Sorry for the inconvenience.

  2. Anton Gogolev closed this discussion on 07 Nov, 2012 09:34 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