Latest Development Blogs
Forum Topics Post
Browse By Tag
Recently we have a problem with culture settings in the WebGrid
(version 7.0.7200.403), that in the past with same code didn't have.
I use the SmartWebResources, set in the MarkUp of WebGrid the
default Culture and in the Localization Manager the Default Culture and
then change the Culture in the code behind
// example set the cultuteCultureInfo ci = CultureInfo("it-IT");grid.LayoutSettings.Culture = ci; //Set the localization of commonText and grid messages grid.LayoutSettings.TextSettings.UseLanguage = ci.ToString();
This settings time ago worked but now it doesn't work anymore.
On the 32-bit I don't see the traslation of TextSettings in Italian
but I don't have exception instead on the 64-bit when I set the Culture
have the following exception:
[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.] ISNet.WebUI.XMLCultureInfo.CreateXMLNumberFormatInfo(XmlDocument xmlDoc) +0 ISNet.WebUI.XMLCultureInfo.CreateXMLCultureInfo() +97 ISNet.WebUI.WebGrid.WebGrid.GetXMLCultureInfo() +251 ISNet.WebUI.ISNetControl.RegisterScript() +409 ISNet.WebUI.WebGrid.WebGrid.RegisterScript() +2520 ISNet.WebUI.ISNetControl.(Object ?, EventArgs ?) +103 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnPreRender(EventArgs e) +11028046 Wuerth.Phoenix.Speedy.OrderlineGrid.ShelfPage.OnPreRender(EventArgs e) in C:\Fabrizio\MainTrunk\SpeedyCrm\OrderlineGrid\ShelfPage.aspx.cs:108
Probably this is due because if the culture is set to default
(en-US), the xml data for culture info is no longer generated in the
webpage and the if I change it won't be generate anymore.
Can you help me?
thanks in advanced
In my test using WebGrid 7 build 403 and WebUI Framework 3 build 754, I could not replicate the error you mention.
Attached is the test page I am using in order to test your issue
Discover WebUI Studio® 2012
Get Started with WebUI Studio®
WebUI Studio® Edition
For ASP.NET Development
For Silverlight Development
For WPF Development
Learn More About ClientUI