Advertisement
Guest User

erros!

a guest
Dec 2nd, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.22 KB | None | 0 0
  1. Server Error in '/' Application.
  2. String or binary data would be truncated.
  3. The statement has been terminated.
  4. 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.
  5.  
  6. Exception Details: System.Data.SqlClient.SqlException: String or binary data would be truncated.
  7. The statement has been terminated.
  8.  
  9. Source Error:
  10.  
  11.  
  12. Line 193: var im = Image.FromStream(image.InputStream);
  13. Line 194: if (im.Width != 64 || im.Height != 64) im = im.GetResized(64, 64, InterpolationMode.HighQualityBicubic);
  14. Line 195: db.SubmitChanges(); // needed to get clan id for image url - stupid way really
  15. Line 196: im.Save(Server.MapPath(clan.GetImageUrl()));
  16. Line 197: }
  17.  
  18.  
  19. Source File: c:\TeamCity\buildAgent\work\b8c78a57f4c14bae\Zero-K.info\Controllers\ClansController.cs Line: 195
  20.  
  21. Stack Trace:
  22.  
  23.  
  24. [SqlException (0x80131904): String or binary data would be truncated.
  25. The statement has been terminated.]
  26. System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1767866
  27. System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352418
  28. System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +244
  29. System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1691
  30. System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +61
  31. System.Data.SqlClient.SqlDataReader.get_MetaData() +90
  32. System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +365
  33. System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +1406
  34. System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +177
  35. System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53
  36. System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +134
  37. System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41
  38. System.Data.Common.DbCommand.ExecuteReader() +12
  39. System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +1306
  40. System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +118
  41. System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +342
  42. System.Data.Linq.StandardChangeDirector.DynamicInsert(TrackedObject item) +145
  43. System.Data.Linq.StandardChangeDirector.Insert(TrackedObject item) +215
  44. System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +378
  45. System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) +372
  46. System.Data.Linq.DataContext.SubmitChanges() +23
  47. 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
  48. lambda_method(Closure , ControllerBase , Object[] ) +239
  49. System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
  50. System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +157
  51. System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
  52. System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22
  53. System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +29
  54. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  55. System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
  56. System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +50
  57. System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +225
  58. System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +10
  59. System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
  60. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  61. System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
  62. System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +26
  63. System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100
  64. System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
  65. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  66. System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
  67. System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
  68. System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
  69. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +54
  70. System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +41
  71. System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
  72. System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +28
  73. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +54
  74. System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +31
  75. System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
  76. System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
  77. System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
  78. System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +54
  79. System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31
  80. System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
  81. System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9657896
  82. System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
  83.  
  84.  
  85. 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