Detecting non-supporting OS/Browsers

If viewer in running Windows 2000, they still get the Install message and they are pointed to the download page by aghost. Since Windows 2000 is not supported for WPF/e, this is a misleading error message. Will this be addressed in agHost on release or do we need to do something on our end (like fail gracefully to HTML). Do you have any suggestions for best practices for doing this?

Michael S. Scherotter

[420 byte] By [mscherotter] at [2007-12-31]
# 1

I'll forward this feedback to the agHost owners. But you can work around this in one of two ways:

  1. a server side check for the platform by sniffing the user agent string from the HTTP request
  2. if you're bundling the aghost with your pages, you can modify it to include the logic to sniff the OS component of the navigator.appVersion string or navigator.userAgent string. (Although this sample is closely related, it isn't exactly what you want but should give you sufficient background)

In either case, you're looking for Windows NT 5.0 for Windows 2000. Hope that helps.

AshishShetty-MSFT at 2007-9-7 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...