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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs