[Mono-bugs] [Bug 536757] New: ResourceProviderFactory CreateLocalResourceProvider method called with wrong parameter
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Sep 4 02:07:28 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=536757
Summary: ResourceProviderFactory CreateLocalResourceProvider
method called with wrong parameter
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: x86
OS/Version: RHEL 5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: mika.aalto at tut.fi
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=316758)
--> (http://bugzilla.novell.com/attachment.cgi?id=316758)
Example application to reproduce this defect
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Custom resource provider is not used in same way like in MS .NET environment.
Looks like resourcekey and property value is passed in
CreateLocalResourceProvider method. Right value is virtual path.
Example application works with IIS and MS .NET.
Used Mono SVN revision 141291 in testing.
Reproducible: Always
Steps to Reproduce:
1. Run attached example application
2.
3.
Actual Results:
Description: HTTP 500. Error processing request.
Stack Trace:
System.ArgumentException: Unknown page: lblHello.Text
at LocalizationTest.CustomResourceProviderFactory.CreateLocalResourceProvider
(System.String virtualPath) [0x00000]
at System.Web.HttpContext.GetResourceProvider (System.String key, Boolean
isLocal) [0x00000]
at System.Web.Compilation.TemplateControlCompiler.ResourceProviderHasObject
(System.String key) [0x00000]
at System.Web.Compilation.TemplateControlCompiler.AssignPropertyFromResources
(System.Web.UI.ControlBuilder builder, System.Reflection.MemberInfo mi,
System.String attvalue) [0x00000]
at
System.Web.Compilation.TemplateControlCompiler.AssignPropertiesFromResources
(System.Web.UI.ControlBuilder builder, System.Type controlType, System.String
attvalue) [0x00000]
at
System.Web.Compilation.TemplateControlCompiler.AssignPropertiesFromResources
(System.Web.UI.ControlBuilder builder, System.String attvalue) [0x00000]
at
System.Web.Compilation.TemplateControlCompiler.CreateAssignStatementFromAttribute
(System.Web.UI.ControlBuilder builder, System.String id) [0x00000]
at System.Web.Compilation.TemplateControlCompiler.CreateControlTree
(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean
childrenAsProperties) [0x00000]
at System.Web.Compilation.TemplateControlCompiler.CreateControlTree
(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean
childrenAsProperties) [0x00000]
at System.Web.Compilation.TemplateControlCompiler.CreateControlTree
(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean
childrenAsProperties) [0x00000]
at System.Web.Compilation.TemplateControlCompiler.CreateMethods () [0x00000]
at System.Web.Compilation.PageCompiler.CreateMethods () [0x00000]
at System.Web.Compilation.BaseCompiler.ConstructType () [0x00000]
at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode ()
[0x00000]
at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode
(System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00000]
at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp,
Boolean debug) [0x00000]
--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433
Expected Results:
Page with language selection drop down list is displayed and hello text is
translated according to selected language.
--
Configure bugmail: http://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