"String Was Not Recognized as a Valid DateTime" Error in Web Access

Version 7

    Verified Product Versions

    Service Desk 7.7.x

    Description:

    When we select "New Incident", we are immediately presented with the error "String was not recognized as a valid DateTime".

     

    Error message is below.

    ____________________________

    String was not recognized as a valid DateTime.

     

    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)

    at Touchpaper.Framework.Data.DataObject.ConvertValueFromString(DataType dataType, String value)

    at Touchpaper.Framework.Data.DataObject.ConvertValueFromString(IAttributeType attributeType, String value)

    at Touchpaper.Framework.Data.DataObject.ConvertValueFromSimpleString(IAttributeType attType, String value)

    at Touchpaper.Web.Console.Controllers.DataController.PopulateDataObject(ObjectForm form, IDataObject dataObject)

    at Touchpaper.Web.Console.Controllers.ObjectController.RefreshList(ObjectParameters parameters)

    at Touchpaper.Web.Console.Controllers.ObjectController.RefreshList()

    at lambda_method(Closure , ControllerBase , Object[] )

    at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)

    at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.b__33()

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.b__36(IAsyncResult asyncResult)

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.b__20()

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.b__22(IAsyncResult asyncResult)

     

    Cause: Culture Setting in tps.config file and in IIS

     

    Resolution:

    NOTE: This is for US culture only and only works if you are running 7.5 SP1 - 7.6.2.  For clarification Please see http://community.landesk.com/support/docs/DOC-26390

     

    Steps:

    1. Set the Culture to English (United Kingdom) (en-GB) under .Net Globilization on the ServiceDesk.webaccess virtual directory. To do this, do the following:

    -  Open IIS Manager

    - Expand down to the Default Web Site -> the Web Access Virtual Directory

    - Dbl click on Highlight .NET Globalization

    - Change the Culture from (Invariant Country), to English (United Kingdon) (en-GB)

    - Click Apply in the Actions pane

    - Open a CMD window as administrator

     

    2. Ensure that the SystemCulture in the ServiceDesk.webaccess tps.config file is set to en-US.

    - Go to (for 7.5) C:\ProgramData\Touchpaper\XXXXXX.WebAccess

    (for 7.6) C:\ProgramData\LANDesk\ServiceDesk\XXXXXX.WebAccess

    - Open the tps.config file

    - Find the line (<add key="SystemCulture" value="en" />) and change the "en" to "en-US"

    - Save the file

    - IISRESET

    Do these same steps on the web server if you have a separate one.