Specified argument was out of the range of valid values. Parameter name: utcDate (RDWeb)

Recently had this issue with RDWeb (Web gateway for Remote Desktop Services). After a lot of searching, we found this was being caused by VMWare. When you have VMWare Tools installed, by default it updates hosts to the VMWare hosts time. If you have NTP enabled on your operating system, this will then update the time again, correcting it. This becomes a loop. This causes the above error. Here is the full output

Specified argument was out of the range of valid values.
Parameter name: utcDate

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.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: utcDate

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:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: utcDate]
System.Web.HttpCachePolicy.UtcSetLastModified(DateTime utcDate) +4974654
System.Web.HttpCachePolicy.SetLastModified(DateTime date) +285
Microsoft.TerminalServices.Publishing.Portal.ResourceFileHandler.ProcessRequest(HttpContext context) +1398
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

Configure your VMWare host to get time from a NTP server, or disable VMWare Tools from updating the hosts time.

Leave a Reply