+ Post New Thread
Results 1 to 13 of 13
Home Access Plus+ Thread, String was not recognised as a valid datetime. in Projects:; Hi Nick, I have moved my HAP install to another server and all is working well however whenever anyone accesses ...
  1. #1
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45

    String was not recognised as a valid datetime.

    Hi Nick,

    I have moved my HAP install to another server and all is working well however whenever anyone accesses the Helpdesk they get "String was not recognised as a valid DateTime". The helpdesk still functions but the error throws staff off.

    Can you help? Cheers.

  2. #2
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45

  3. #3
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45
    Just pulled this from the event log.

    An error occurred in Home Access Plus+ Page: mscorlib String was not recognized as a valid DateTime. System.FormatException: String was not recognized as a valid DateTime. at System.DateTime.Parse(String s) at HAP.HelpDesk.API.PeriodStats(String Period) at SyncInvokeStats(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.I nvoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRu ntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process( Boolean isOperationContextSet) at System.DateTime.Parse(String s) at HAP.HelpDesk.API.PeriodStats(String Period) at SyncInvokeStats(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.I nvoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRu ntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process( Boolean isOperationContextSet)

    @nickbro, can you help?

  4. #4

    Join Date
    Apr 2012
    Posts
    42
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    5
    fairm010, Whilst nick will probably have an idea what's causing this, if you want, email me a copy of your tickets.xml and i'll try and look and see if I can tell what's causing this.

    Paul

  5. #5
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45
    Cheers Paul. I'll PM it to you shortly.

  6. #6
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45
    cant PM it, can you pm me your email address please?

  7. #7
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45
    XML emailed over. Thanks Paul!

  8. #8
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,483
    Thank Post
    37
    Thanked 490 Times in 422 Posts
    Rep Power
    110
    Add this to the web.config
    HTML Code:
    <configuration>
       <system.web>
          <globalization 
             requestEncoding="en-gb"
             responseEncoding="en-gb"/>
       </system.web>
    </configuration>

  9. #9
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45
    Ah nick answered this back in 1970! I'll give that a shot.
    Attached Thumbnails Attached Thumbnails String was not recognised as a valid datetime.-1394902797101.jpg  

  10. #10
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,483
    Thank Post
    37
    Thanked 490 Times in 422 Posts
    Rep Power
    110
    Sorry, the correct on is
    HTML Code:
    <globalization uiCulture="en-GB" culture="en-GB" />

  11. #11
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45
    I get the following when adding that line to web.config.

    String was not recognised as a valid datetime.-haperror.png

  12. #12
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,483
    Thank Post
    37
    Thanked 490 Times in 422 Posts
    Rep Power
    110
    @fairm010, you've put it in the wrong place, it needs to sit below system.web

  13. #13
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,136
    Thank Post
    47
    Thanked 146 Times in 128 Posts
    Rep Power
    45
    Thats sorted it, thankyou Nick!

SHARE:
+ Post New Thread

Similar Threads

  1. String was not recognized as a valid DateTime
    By Covalence in forum Home Access Plus+
    Replies: 3
    Last Post: 24th May 2013, 06:19 PM
  2. Domain controller not registering as a DC
    By Dos_Box in forum Windows
    Replies: 5
    Last Post: 13th June 2007, 05:17 PM
  3. Cubasis - not previewing as you play [FIXED]
    By mark in forum Educational Software
    Replies: 13
    Last Post: 30th December 2005, 09:30 AM
  4. Replies: 9
    Last Post: 29th November 2005, 05:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •