Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Server Error in '/' Application.
- String or binary data would be truncated.
- 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: String or binary data would be truncated.
- The statement has been terminated.
- Source Error:
- Line 193: var im = Image.FromStream(image.InputStream);
- Line 194: if (im.Width != 64 || im.Height != 64) im = im.GetResized(64, 64, InterpolationMode.HighQualityBicubic);
- Line 195: db.SubmitChanges(); // needed to get clan id for image url - stupid way really
- Line 196: im.Save(Server.MapPath(clan.GetImageUrl()));
- Line 197: }
- Source File: c:\TeamCity\buildAgent\work\b8c78a57f4c14bae\Zero-K.info\Controllers\ClansController.cs Line: 195
- Stack Trace:
- [SqlException (0x80131904): String or binary data would be truncated.
- The statement has been terminated.]
- System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1767866
- System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352418
- System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +244
- System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1691
- System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +61
- System.Data.SqlClient.SqlDataReader.get_MetaData() +90
- System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +365
- System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +1406
- System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +177
- System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53
- System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +134
- System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41
- System.Data.Common.DbCommand.ExecuteReader() +12
- System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +1306
- System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +118
- System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +342
- System.Data.Linq.StandardChangeDirector.DynamicInsert(TrackedObject item) +145
- System.Data.Linq.StandardChangeDirector.Insert(TrackedObject item) +215
- System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +378
- System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) +372
- System.Data.Linq.DataContext.SubmitChanges() +23
- ZeroKWeb.Controllers.ClansController.SubmitCreate(Clan clan, HttpPostedFileBase image, HttpPostedFileBase bgimage, Boolean noFaction) in c:\TeamCity\buildAgent\work\b8c78a57f4c14bae\Zero-K.info\Controllers\ClansController.cs:195
- lambda_method(Closure , ControllerBase , Object[] ) +239
- System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
- System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +157
- System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
- System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22
- System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +29
- System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
- System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
- System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +50
- System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +225
- System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +10
- System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
- System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
- System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
- System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +26
- System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100
- System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
- System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
- System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
- System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
- System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
- System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +54
- System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +41
- System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
- System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +28
- System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +54
- System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +31
- System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
- System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
- System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
- System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +54
- System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31
- System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
- System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9657896
- System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement