Server Error in '/' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

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:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14524712
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   System.Convert.ToInt32(String value) +60
   YupiiiMVC.<>c.<StringToTagViewModel>b__20_0(String t) in d:\Repositories\capital.gr\Yupiii\App_Start\ObjectMapperConfig.cs:2250
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +145
   System.Linq.WhereEnumerableIterator`1.MoveNext() +245
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +492
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +90
   YupiiiMVC.ObjectMapperConfig.StringToTagViewModel(String source) in d:\Repositories\capital.gr\Yupiii\App_Start\ObjectMapperConfig.cs:2243
   YupiiiMVC.<>c.<Initialize>b__19_5(ArticleViewModel dest, Object state) in d:\Repositories\capital.gr\Yupiii\App_Start\ObjectMapperConfig.cs:358
   EmitMapper.DelegateCaller_EmitMapper.MappingConfiguration.MappingOperations.ValuesPostProcessor`1[YupiiiMVC.Models.ArticleViewModel\].CallFunc(Object , Object ) +98
   EmitMapper.Mappers.ObjectsMapperBaseImpl.Map(Object from, Object to, Object state) +135
   EmitMapper.ObjectsMapper`2.Map(TFrom from, TTo to, Object state) +27
   YupiiiMVC.Controllers.<Story>d__9.MoveNext() in d:\Repositories\capital.gr\Yupiii\Controllers\ArticleController.cs:216
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
   System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +92
   System.Web.Mvc.Async.<>c__DisplayClass8_0.<BeginInvokeAsynchronousActionMethod>b__1(IAsyncResult asyncResult) +22
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0() +80
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +387
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +387
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +387
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +387
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__4() +50
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +26
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +40
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.<>c__DisplayClass7_0.<InvokeEndHandler>b__0() +45
   System.Web.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar) +167
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +169


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