[Mono-bugs] [Bug 689105] New: Setting a numerical value for "Control Propertie" using "Expression Builder" causes an error.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 21 11:13:05 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=689105
https://bugzilla.novell.com/show_bug.cgi?id=689105#c0
Summary: Setting a numerical value for "Control Propertie"
using "Expression Builder" causes an error.
Classification: Mono
Product: Mono: Class Libraries
Version: 2.10.x
Platform: x86-64
OS/Version: SLES 11
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: xhirashima at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=426128)
--> (http://bugzilla.novell.com/attachment.cgi?id=426128)
sample program
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; InfoPath.1; .NET4.0C; .NET4.0E; InfoPath.3)
Setting a numerical value for "Control Propertie" using "Expression Builder"
causes an error.
It works fine in the case of strings.
<%$ AppSettings: appSettings_string %>
is worked.
<%$ AppSettings: appSettings_int %>
is not worked.
I'm going to attach a sample program.
Probably, it will be fixed if you modify line 88 in
"System.Web/System.Web.Compilation/AppSettingsExpressionBuilder.cs" as follows.
expressionArray[1] = new CodeTypeOfExpression(entry.DeclaringType);
Reproducible: Always
Steps to Reproduce:
1. Run the attached demo
2. Launch Default.aspx
3. Error
Actual Results:
Server Error
--------------------------------------------------------------------------------
Cannot cast from source type to destination type.
Description: HTTP 500. Error processing request.
Stack Trace:
System.InvalidCastException: Cannot cast from source type to destination type.
at ASP.default_aspx.__BuildControl_Button1 () [0x00000] in <filename unknown>:0
at ASP.default_aspx.__BuildControl_form1 () [0x00000] in <filename unknown>:0
at ASP.default_aspx.__BuildControlTree (ASP.default_aspx __ctrl) [0x00000] in
<filename unknown>:0 at ASP.default_aspx.FrameworkInitialize () [0x00000] in
<filename unknown>:0 at System.Web.UI.Page.ProcessRequest
(System.Web.HttpContext context) [0x00000] in <filename unknown>:0 at
System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] in
<filename unknown>:0 at System.Web.HttpApplication.Tick () [0x00000] in
<filename unknown>:0
--------------------------------------------------------------------------------
Expected Results:
A value is set in a property of the control.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list