If any of you have decided to try and print on a 2012 Remote Desktop Server, you will be in for some fun 🙂
Firstly, you will get errors in the Windows XP / Vista event log about tswpfwrp.exe. Microsoft released a hotfix for this which fixes the errors, but still doesn’t allow you to print.
You need to install the Microsoft XML Paper Specification Essentials Pack. Once this is installed, reboot the computer and try printing.
Also ensure that Windows XP has RDP version 7 installed.
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
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.
[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.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.
By default, when publishing Webapps using Microsoft Remote Desktop Services, it removes the publishing of Remote Desktops. To enable this edit the following registry key:
HKLMSOFTWAREMicrosoftWindows NTCurrentVersionTerminal ServerCentralPublishedResourcesPublishedFarms<collection>RemoteDesktops<collection>
ShowInPortal REG_DWORD 0x00000001