Problem with Culture and Text Settings

1 reply. Last post: July 13, 2010 12:37 AM by Glenn Layaar
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

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 cultute
CultureInfo 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

All times are GMT -5. The time now is 11:51 PM.
Previous Next