Bug 323886 (MONO81204) - [WIN32] meta:resourcekey not supported yet
Summary: [WIN32] meta:resourcekey not supported yet
Status: RESOLVED FIXED
Alias: MONO81204
Product: Mono: Class Libraries
Classification: Mono
Component: Sys.Web (show other bugs)
Version: 1.2
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Marek Habersack
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-03-21 15:52 UTC by Tyberius Prime
Modified: 2007-09-22 21:22 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Testcase as 7zip format (3.08 KB, application/octet-stream)
2007-03-23 15:17 UTC, Thomas Wiest
Details
Gzipped tar archive containing repro (4.00 KB, application/x-gzip)
2007-08-16 00:01 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:33:04 UTC


---- Reported by tyberius_prime@coonabibba.de 2007-03-21 08:52:57 MST ----

Please fill in this template when reporting a bug, unless you know what 
you are doing.
Description of Problem:

The meta:resourcekey attribute/implicit resources is/are not implemented 
yet.


Steps to reproduce the problem:
1. add meta:resourcekey="PageResource1" to a <%@ Page Language="C#"...> tag
2. have
   <data name="PageResource1.Title" xml:space="preserve">
    <value>Untitled Page</value>
  </data>
in the appropriate resource file ( app_localresource)
3. visit page

Actual Results:


Expected Results:
Application of culture depended resource PageResource1.Title to page.


How often does this happen? 
Everytime.

Additional Information:
Occurs when you try to run ScrewTurnWiki on Mono ( after fixing other 
bugs).
I was using the tarball from 2007-03-20.



---- Additional Comments From tyberius_prime@coonabibba.de 2007-03-21 10:16:25 MST ----

I have foobared my mono, trying to hack around this, but
the error messages was thrown in /mcs/class/System.Web/System.Web.UI/
TemplateParser.cs line 582:
if (atts.Count > 0)
                              ThrowParseException ("Unknown 
attribute: " + GetOneKey (atts));




---- Additional Comments From dna@informatik.uni-kiel.de 2007-03-23 08:17:57 MST ----

Created an attachment (id=171702)
Testcase as 7zip format




---- Additional Comments From dna@informatik.uni-kiel.de 2007-03-23 08:18:27 MST ----

Attached a Visual Studio 2005 generated Testcase.



---- Additional Comments From mhabersack@novell.com 2007-03-26 08:27:25 MST ----

This bug has been fixed in svn head, revision 74972



---- Additional Comments From gert.driesen@pandora.be 2007-08-15 16:45:02 MST ----

When hosting the ASP.NET runtime, I get the following exception:

System.Web.HttpException:  ---&gt; System.ArgumentNullException: 
Argument cannot be null.
Parameter name: path is not rooted in the virtual directory
  at System.Web.Hosting.SimpleWorkerRequest.MapPath (System.String 
path) [0x00000]
  at System.Web.HttpRequest.MapPath (System.String virtualPath, 
System.String baseVirtualDir, Boolean allowCrossAppMapping) [0x00000]
  at System.Web.HttpRequest.MapPath (System.String virtualPath) 
[0x00000]
  at System.Web.Compilation.AppResourcesCompiler..ctor (System.String 
virtualPath) [0x00000]
  at System.Web.HttpContext.GetLocalResourceObject (System.String 
virtualPath, System.String resourceKey, 
System.Globalization.CultureInfo culture) [0x00000]
  at System.Web.HttpContext.GetLocalResourceObject (System.String 
virtualPath, System.String resourceKey) [0x00000]
  at 
System.Web.Compilation.TemplateControlCompiler.AssignPropertyFromResou
rces
(System.CodeDom.CodeMemberMethod method, System.Reflection.MemberInfo 
mi, System.String attvalue) [0x00000]
  at 
System.Web.Compilation.TemplateControlCompiler.AssignPropertiesFromRes
ources (System.CodeDom.CodeMemberMethod method, System.Type 
controlType, System.String attvalue) [0x00000]
  at 
System.Web.Compilation.TemplateControlCompiler.AssignPropertiesFromRes
ources (System.Web.UI.ControlBuilder builder, System.String attvalue) 
[0x00000]
  at 
System.Web.Compilation.TemplateControlCompiler.CreateAssignStatementFr
omAttribute (System.Web.UI.ControlBuilder builder, System.String id) 
[0x00000]
  at 
System.Web.Compilation.TemplateControlCompiler.CreateAssignStatementsF
romAttributes (System.Web.UI.ControlBuilder builder) [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.Init () [0x00000]
  at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000]
  at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000]
  at System.Web.UI.PageParser.CompileIntoType () [0x00000]
  at System.Web.UI.TemplateControlParser.GetCompiledInstance () 
[0x00000]
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String 
virtualPath, System.String inputFile, System.Web.HttpContext context) 
[0x00000]
  at System.Web.UI.PageHandlerFactory.GetHandler 
(System.Web.HttpContext context, System.String requestType, 
System.String url, System.String path) [0x00000]
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext 
context) [0x00000]
  at 
System.Web.HttpApplication+&lt;&gt;c__CompilerGenerated5.MoveNext () 

I've attached a gzipped tar archive containing a repro.



---- Additional Comments From gert.driesen@pandora.be 2007-08-15 17:01:09 MST ----

Created an attachment (id=171703)
Gzipped tar archive containing repro




---- Additional Comments From mhabersack@novell.com 2007-08-17 08:59:46 MST ----

Gert, the attached test works fine for me:

https://bugzilla.novell.com/show_bug.cgi?id=MONO81204/new_test$ mono --debug test.exe; echo $?
0




---- Additional Comments From gert.driesen@pandora.be 2007-08-17 09:18:13 MST ----

I didn't check before, but it appears to only fail on Windows.

This bug blocked bug(s) 80809.
Imported an attachment (id=171702)
Imported an attachment (id=171703)

Unknown operating system other. Setting to default OS "Other".

Comment 1 Robert Jordan 2007-09-22 21:22:36 UTC
The last part of this bus was fixed in SVN. See bug #324229.