[Mono-bugs] [Bug 81174][Maj] New - Can't use App_LocalResources and explicit localization
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Mar 18 14:54:22 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by dna at informatik.uni-kiel.de.
http://bugzilla.ximian.com/show_bug.cgi?id=81174
--- shadow/81174 2007-03-18 13:54:22.000000000 -0500
+++ shadow/81174.tmp.28230 2007-03-18 13:54:22.000000000 -0500
@@ -0,0 +1,65 @@
+Bug#: 81174
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com
+ReportedBy: dna at informatik.uni-kiel.de
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Can't use App_LocalResources and explicit localization
+
+Description of Problem:
+
+Add a new resource file to your App_LocalResources named like your page,
+eg. Default.aspx.resx
+
+Fill it with example content, eg. Title=My Webseite
+
+Add a Localize control to your Default.aspx and set the Text property to:
+<asp:Localize ID="TitleLocalize" runat="server" Text="<%$resources:Title
+%>"></asp:Localize>
+
+also
+<asp:Localize ID="TitleLocalize" runat="server" Text="<%$resources:,Title
+%>"></asp:Localize>
+
+does not work.
+
+
+Result:
+Server error in '/' application
+Description: Error processing request.
+
+Error Message: HTTP 500.
+
+Stack Trace:
+
+System.Resources.MissingManifestResourceException: Could not find any
+resource appropiate for the specified culture or its parents. Make sure
+"Resources..resources" was correctly embedded or linked into assembly
+"App_GlobalResources.1e40ca91".
+ at System.Resources.ResourceManager.InternalGetResourceSet
+(System.Globalization.CultureInfo culture, Boolean Createifnotexists,
+Boolean tryParents) [0x00000]
+ at System.Resources.ResourceManager.InternalGetResourceSet
+(System.Globalization.CultureInfo culture, Boolean Createifnotexists,
+Boolean tryParents) [0x00000]
+ at System.Resources.ResourceManager.InternalGetResourceSet
+(System.Globalization.CultureInfo culture, Boolean Createifnotexists,
+Boolean tryParents) [0x00000]
+ at System.Resources.ResourceManager.GetObject (System.String name,
+System.Globalization.CultureInfo culture) [0x00000]
+ at System.Web.HttpContext.GetResourceObject (System.String classKey,
+System.String resourceKey, System.Globalization.CultureInfo culture,
+System.Reflection.Assembly assembly) [0x00000]
+
+
+Both examples work on .NET 2.0
More information about the mono-bugs
mailing list