Server Error in '/' Application.

The 'Lastik1' property on 'tblInspection_Orders' could not be set to a 'Byte' value. You must set this property to a non-null value of type 'String'.

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.InvalidOperationException: The 'Lastik1' property on 'tblInspection_Orders' could not be set to a 'Byte' value. You must set this property to a non-null value of type 'String'.

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:


[InvalidOperationException: The 'Lastik1' property on 'tblInspection_Orders' could not be set to a 'Byte' value. You must set this property to a non-null value of type 'String'. ]
   System.Data.Common.Internal.Materialization.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) +336
   lambda_method(Closure , Shaper ) +5710
   System.Data.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) +175
   lambda_method(Closure , Shaper ) +281
   System.Data.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper) +366
   System.Data.Common.Internal.Materialization.SimpleEnumerator.MoveNext() +91
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +146
   InspectionOrderManager.IncreaseVisitCount(Int32 InspectionOrderID) +330
   Exhibition_ShowCar.LoadInspectionDetails() +63
   Exhibition_ShowCar.Page_Load(Object sender, EventArgs e) +44
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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