[Mono-bugs] [Bug 445903] New: GetField() API fails on Mono 2.0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 18 01:36:26 EST 2008


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


           Summary: GetField() API fails on Mono 2.0
           Product: Mono: Runtime
           Version: 2.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: kuanil at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


i have a web.config file such that :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
    <httpRuntime
                executionTimeout="3400"
                maxRequestLength="2097152"
        />
 </system.web>
 ........
 ........
</configuration>

--> In my cs file, i call this API : 
     public void Init(HttpApplication context)
     {
        object config = context.Context.GetConfig("system.web/httpRuntime");
        FieldInfo field = config.GetType().GetField("maxRequestLength",
                                BindingFlags.Instance|BindingFlags.Public
                                        );  
     }
***************
It compiles well on both Mono 1.2 and Mono 2.0 . 
While running on Mono 1.2 , variable field has proper values as expected. But
when i run my application on Mono 2.0 , var field becomes null.

Can you check and let me know why it fails on Mono 2.0 . Is there any other API
 for Mono 2.0 or the way i should access the config file has changed ?


-- 
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.


More information about the mono-bugs mailing list