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:

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): String or binary data would be truncated.
The statement has been terminated.]
   System.Data.Linq.StandardChangeDirector.Insert(TrackedObject item) +312
   System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +433
   System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) +641
   MCCCommon.Entities.Errorlog.Write(Staff staff, ErrorLevel level, String category, String message, HttpRequest req) in C:\Project\kosen\mcc\mcc\mcc\MCCCommon\Entities\Table\ErrorLog.cs:54
   MCC.ApplicationPage.Error_Happen(Object sender, EventArgs e) in C:\Project\kosen\mcc\mcc\mcc\mcc\MCC\MCC\BusinessObjects\Common\ApplicationPage.cs:447
   System.Web.UI.TemplateControl.OnError(EventArgs e) +137
   System.Web.UI.Page.HandleError(Exception e) +106
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9449
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +345
   System.Web.UI.Page.ProcessRequest() +75
   System.Web.UI.Page.ProcessRequest(HttpContext context) +70
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +35
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +143
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0