Skip to content

Instantly share code, notes, and snippets.

@bleroy
Created April 1, 2015 23:52
Show Gist options
  • Save bleroy/e6d15c958ac42de4ad9c to your computer and use it in GitHub Desktop.
Save bleroy/e6d15c958ac42de4ad9c to your computer and use it in GitHub Desktop.
CodePlex Issue #16537 Plain Text Attachments
Server Error in '/OrchardLocal' 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.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) +496
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) +166
NHibernate.Action.EntityInsertAction.Execute() +180
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) +117
NHibernate.Engine.ActionQueue.ExecuteActions(IList list) +92
NHibernate.Engine.ActionQueue.ExecuteActions() +15
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