[Mono-bugs] [Bug 60178][Maj] New - Need to add <clientTarget> section to machine.config file.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 14 Jun 2004 23:51:50 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by davidandrewtaylor@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=60178
--- shadow/60178 2004-06-14 23:51:50.000000000 -0400
+++ shadow/60178.tmp.16615 2004-06-14 23:51:50.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 60178
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity: 001 One hour
+Priority: Major
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: davidandrewtaylor@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Need to add <clientTarget> section to machine.config file.
+
+Description of Problem:
+ASP.NET can render different output depending on the browser's
+userAgent. In MS.NET 1.0/1.1 There are standard defined aliases that can
+be used to 'force' output for a certain browser or for uplevel/downlevel
+browsers, such as:
+----
+<%@Page clientTarget="uplevel" %>
+----
+While MONO appears to have implemented all the required functionality,
+the predefined aliases have not been added to the MONO machine.config
+file and web pages using this feature throw an exception. To fix this
+the following node should be added to the MONO machine.config file:
+
+<clientTarget>
+ <add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows
+NT 4.0)" />
+ <add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows
+NT 4.0)" />
+ <add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0;
+Windows NT 4.0)" />
+ <add alias="downlevel" userAgent="Unknown" />
+</clientTarget>
+
+Steps to reproduce the problem:
+Run this testcase:
+<%@Page clientTarget="uplevel" %>
+
+Actual Results:
+Following exception is thrown:
+ClientTarget 'uplevel' is an invalid alias. See the documentation for
+<clientTarget> config. section.
+
+Expected Results:
+Web page should load.
+
+How often does this happen?
+All the time in Mono Beta 3.
+
+Additional Information:
+No code needs to be added to MONO, but before V1.0 we should include
+these aliases in the MONO machine.config file.