https://bugzilla.novell.com/show_bug.cgi?id=445903

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=445903#c7


Marek Habersack <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]
             Status|NEEDINFO                                        |RESOLVED
      Info Provider|[EMAIL PROTECTED]                               |
         Resolution|                                                |INVALID




--- Comment #7 from Marek Habersack <[EMAIL PROTECTED]>  2008-11-19 08:42:07 
MST ---
As Rodrigo says, we don't support code which uses internal implementation
details. The correct code to access the property on 2.0+ is:

HttpRuntimeSection sec = WebConfigurationManager.GetSection
("system.web/httpRuntime") as HttpRuntimeSection;
if (sec != null)
   Console.WriteLine (sec.MaxRequestLength);

This is the official, supported and portable way of doing it. There's no reason
to use reflection for this purpose. Hope that helps.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to