Skip to content

Instantly share code, notes, and snippets.

@bleroy
Created April 2, 2015 00:24
Show Gist options
  • Save bleroy/af8b5fe254950a6eba35 to your computer and use it in GitHub Desktop.
Save bleroy/af8b5fe254950a6eba35 to your computer and use it in GitHub Desktop.
CodePlex Issue #16546 Plain Text Attachments
Server Error in '/' Application.
The data was truncated while converting from one data type to another. [ Name of function(if known) = ]
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.SqlServerCe.SqlCeException: The data was truncated while converting from one data type to another. [ Name of function(if known) = ]
Source Error:
Line 40: }
Line 41: Logger.Debug("Final work for transaction being performed");
Line 42: _scope.Dispose();
Line 43: Logger.Debug("Transaction disposed");
Line 44: }
Source File: C:\Workspace\Orchard\src\Orchard\Data\TransactionManager.cs Line: 42
Stack Trace:
[SqlCeException: The data was truncated while converting from one data type to another. [ Name of function(if known) = ]]
System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr) +29
System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor) +347
System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options) +665
System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery() +21
NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd) +287
NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation) +16
NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session) +968
NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session) +195
NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session) +354
NHibernate.Action.EntityUpdateAction.Execute() +399
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) +117
NHibernate.Engine.ActionQueue.ExecuteActions(IList list) +92
NHibernate.Engine.ActionQueue.ExecuteActions() +27
NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) +121
NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) +56
NHibernate.Impl.SessionImpl.Flush() +292
NHibernate.Transaction.DistributedTransactionContext.System.Transactions.IEnlistmentNotification.Prepare(PreparingEnlistment preparingEnlistment) +395
[TransactionAbortedException: The transaction has aborted.]
System.Transactions.TransactionStateAborted.EndCommit(InternalTransaction tx) +11
System.Transactions.CommittableTransaction.Commit() +239
System.Transactions.TransactionScope.InternalDispose() +402
System.Transactions.TransactionScope.Dispose() +1450
Orchard.Data.TransactionManager.System.IDisposable.Dispose() in C:\Workspace\Orchard\src\Orchard\Data\TransactionManager.cs:42
Autofac.Core.Disposer.Dispose(Boolean disposing) +71
Autofac.Util.Disposable.Dispose() +46
Autofac.Core.Lifetime.LifetimeScope.Dispose(Boolean disposing) +21
Autofac.Util.Disposable.Dispose() +46
Orchard.Mvc.Routes.ContainerProvider.EndRequestLifetime() in C:\Workspace\Orchard\src\Orchard\Mvc\Routes\ShellRoute.cs:99
Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in C:\Workspace\Orchard\src\Orchard\Mvc\Routes\ShellRoute.cs:180
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8836913
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment