Ajax - Changing Culture - To Get An Out Of Memory Exception?

Jan 21, 2010

I have a strange problem with ASP.NET. Several sites on my web server run the exact same application. The application has a page that contains a Tab Container from the Ajax Control Toolkit which in itself contains a Calendar control.

If I set my culture in the web.config to be:

<globalization culture="en-GB" uiCulture="en-GB" />

Then everything works fine. However, by changing this to:

<globalization culture="en-US" uiCulture="en-US" />

When attempting to load the page I get an out of memory exception and w3wp.exe seems to use all available memory.

View 1 Replies


Similar Messages:

AJAX :: Get This Exception / Could Not Find Any Resources Appropriate For The Specified Culture Or The Neutral Culture

Feb 25, 2011

I want to add a calendar extender to my website so I downloaded the lastest Ajax Control Toolkit, added the calendar and when I start debugging I get this exception: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed. I have the dlls in the bin folder... I followed all the steps in the instruction guide for installing the ajax control toolkit.

View 1 Replies

AJAX :: Missing Manifest Resource Exception Error - Could Not Find Any Resources Appropriate For The Specified Culture

Jun 4, 2010

i am new to using AJAX.I am using Visual Web Developer 2010 and I followed all the steps given on the http://www.asp.net/ajaxlibrary/act.ashx website to install AJAX.However, when I try to run my website,I get an error:

"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed."

View 1 Replies

AJAX :: 2.0 - Out Of Memory Exception When Browse The Site From IE7 In WinXP Machine

Nov 17, 2010

I am encountering a weird message 'Out of memory at line : 6' in a web application, which is in production, all of a sudden. The application is built with ASP.Net 2.0. The page which throws this error is constructed as below:

Master Page
Main Page (Error displayed here)
Tab Page 4
Update Panel
User Control - Main
User Control - Child 1
User Controls - Sub Child 1
User Control - Child 2

There are six tab pages in the tab control, which is designed as a wizard and this error is thrown when navigating from Tab 3 to Tab 4. Tab 4 contains ModalPopupExtenders, Cascading Drop Down Lists, and Collapsible panes in user control. The Web Server is Win2003 SP1 with IIS 6.0. The browser is IE 6.0.3790.3959 SP2. When tested in firefox 3.0 the error is not thrown. When the site is browsed from IE7 in WinXP machine, It throws Sys.WebForms.PageRequestManagerServerErrorException with error code 12152 or 401.

View 3 Replies

AJAX :: Error / Could Not Find Any Resources Appropriate For The Specified Culture Or The Neutral Culture.

Jan 27, 2010

I followed the instructions to setup the Ajax Control Toolkit.

After that I just create a TabContainer and I'm getting this error when I try to run my website application :

Server Error in '/WebSite3' Application.

View 3 Replies

AJAX :: Could Not Find Any Resources Appropriate For The Specified Culture Or The Neutral Culture

Jul 22, 2010

Server Error in '/' Application.

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure

"AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Source Error:
[Code]....

Stack Trace:

[Code]....
Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3614

View 1 Replies

AJAX :: How To Set Culture Just For CalendarExtender Irrespective Of Page Culture

Mar 1, 2010

I have a scenario where I am using CalendarExtender on a page with UICulture and Culture as "en-US".

But I want to show CalendarExtender in "de-DE" culture. I know that I can set up EnableScriptGlobalization="True" EnableScriptLocalization="true" for ScriptManager and CalendarExtender will show up as per culture defined for page. But this does not work for me because I can not change page level UICulture and Culture from "en-US" to "de-DE" ( If I do so, I face double value issue. e.g. double d = 12.34; is displayed as 12,34 on UI and then its unmanagable while editing values).

So coming back to my problem, Can I just change culture for CalendarExtender so that page culture is set to "en-US" and calender is shown in some different language? I know its not something straightforward, I might need to dig up source code.

View 7 Replies

Changing A Site's Culture Programmatically

Jul 9, 2010

i'm trying to set my website's culture programmatically, so when a user clicks a button they can change the text on the page from english to spanish. here's my code:

protected void btnChangeLanguage(object sender, EventArgs e)
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("es");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("es);
}
<asp:Label ID="lblDisplay" runat="server" meta:ResourceKey="lblDisplay" />
<asp:Button ID="btnChangeLanguage" runat="server" Text="Change Language"
OnClick="btnChangeLanguage_Click" />

i have a Default.aspx.resx file with a key/value of: lblDisplay.text/English and a Default.aspx.es.resx file with a key/value of: lblDisplay.text/Espanol. i can't get my Label's text to change from "English" to "Spanish". anyone see what i'm doing wrong?

View 1 Replies

Changing Culture When Switching View?

Jan 12, 2010

I am working on a website web site where each user has a culture setting to allow control of resources displayed. The main page has two views, one the log on screen, the second the main menu.

When first loaded the page displays with the culture settings of the previous user (if any). If I then log on as a user with a different culture setting the view changes to the main menu without changing the culture. Go to another page and the user's correct culture settings are picked up, go back to the main menu, uses the correct culture etc.

This is logical but is there a way (without redesigning the site to have a separate log in page and main menu) to reset the culture to the new user's when switching view?

View 1 Replies

Localization :: Changing Language Using Culture Information?

Aug 17, 2010

I'm using the following msdn article to use different languages in my web application:

http://msdn.microsoft.com/en-us/library/fw69ke6f(v=VS.80).aspx

I'm following the instructions step by step in VS 2010, and it creates the resource files exactly how it's supposed to. However, when I run the program it just doesn't apply it. I don't see the different values from the resource file.

If I leave my resource file name as sample.aspx.resx, it works. But when I change it to sample.aspx.en-us.resx, it doesn't work. I'm supplying culture from the aspx page's Culter and UICulture properties. I'm being very careful in choosing the correct file name, as that could be the issue, but it just doesn't work. I also tried changing the culture in the backend code this way:

Protected
Overrides
Sub InitializeCulture() [code]....

It still doesn't work.

View 2 Replies

Changing Images To A Site Depending On Culture

Jul 1, 2010

i'm trying to change the ImageButton on my site using resx files. i tried assigning my ImageButton with meta:ResourceKey="imgBtnSubmit". then in my resx file, i added imgBtnSubmit.ImageUrl and assigned it the url to my new ImageButton. this didn't work for me. could someone tell me if i'm doing something wrong or if there is some other way i could do this?

View 3 Replies

String - Changing The Culture Based Off Of A Dynamic Value?

Mar 17, 2011

I have a web application that tracks financial data. I would like to have the option where a user can edit their currency via dropdown. The different currency types will be held in a database and a user can then select which currency they wish to use. The easiest way I can see doing this would be to check what the currency value is and dynamically change the culture to match the currency, thus I could continue to use the string str = String.Format("{0:C}", revenue);format. I am open to other suggestions but this just seemed the most logical to me.

View 2 Replies

Localization :: Programatically Changing UICulture And Culture?

Jul 15, 2010

I'm trying to change the value of the language and culture values via a database entry and then appending the culture to the returned value. IE: "en" is in the database, I add "-CA" via VB code.When I hardcode the values, it does work no problem. However, appding the "-CA" makes it crash with the following error message:

[Code]....

Now, I'm retrieving the language value from a database and, since the information is used all over the web site, I cannot really change the data within the database.The following code is posted in the Default.aspx page, called by the master page.The function "siteSetLanguage" retrieves from the database the base language (EN/FR) and returns the value. Null values are checked for and if a null value is returned from the database, it defaults to EN.[Code]....

I do want to force UICulture to english as everything in the databases and external files are stored through the english canadian regional method. However, I've been trying to use .resx files using the above method, but to no avail.Needless to say, my language files don't seem to work no matter what I do.

View 2 Replies

UTF-8 Dont Display Correctly After Changing Culture In Page Directive

Dec 10, 2010

i designed an export to excel page that uses the following code

the data is displayed in grid view and the date format is displayed as M/d/yyyy

so i added the culture en-GB to page directive to display the date as d/M/yyyy

the date now displays correctly d/M/yyyy, and the utf-8 also display correctly in gridview.

however once i export to excel the utf-8 appears scrambled

when ever i remove the culture from page directives, names display correctly, however i face again the M/d/yyyy issue.

My question is: is there a way to display date as d/M/yyyy and at the same time reading correct utf-8

View 1 Replies

Localization :: Display In Diffenrent Languages Without Changing The Culture Settings

Jul 14, 2010


I am working on an ASP.net web application, the application need to display text in English, Chinese and Japanese based on the parameters passed, however the culture settings such as currency symbol, time and number format should remain as en-US locale.

My understanding about ASP.Net localization is a package deal, am I wrong? If I am right, the only way to do this is to roll my own solution?

View 4 Replies

Databases :: Isolate An Out Of Memory Exception?

Nov 17, 2010

How to isolate an out of memory exception

View 2 Replies

VS 2008 Read XML Returning Out Of Memory Exception?

Mar 11, 2011

I have a large XML file that contains invalid hex characters. I'm trying to test a function that removes invalid characters from the XML file but it must be stored in a string. When I try to read the XML file into a string I receive an out of memory exception. The file is 149MB. Can anyone tell me if there is another way to do this?

Code:

[code]....

View 6 Replies

Web Forms :: Out Of Memory Exception On Remote Server

Oct 18, 2010

I'm not sure why but on random occassions after I have added an update to my site via ftp and then try to access the site through the browser I get an "out of memory" exception. But there are no infinite loops or problems like that. Then after some time it will then work (I assume the web hosts restart IIS or something) and all is fine again. Server Error in '/' Application. Exception of type 'System.OutOfMemoryException' was thrown. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Source Error:

[Code]....

Stack Trace:

[Code]....

View 3 Replies

C# - Getting An Out Of Memory Exception With System.Threading.ReaderWriterCount

Nov 1, 2010

I've got an asp.net application, it's running on DotNetNuke, under load we get the occasional out of memory exception. I've got a dump loaded it into windbg. the end of !dumpheap -stat is

1192a588 88684 2128416 AutoMapper.MappingEngine
79333594 9482 2266348 System.Byte[]
134b0034 88695 2838240 System.EventHandler`1[[AutoMapper.TypeMapCreatedEventArgs, AutoMapper]]
13d8703c 88684 4611568 System.Collections.Generic.Dictionary`2[[Castle.DynamicProxy.Generators.CacheKey, AutoMapper],[System.Type, mscorlib]]
13d86dc8 88684 4611568 Castle.DynamicProxy.ModuleScope
13d865bc 88684 4611568 System.Collections.Generic.Dictionary`2[[AutoMapper.Internal.TypePair, AutoMapper],[AutoMapper.IObjectMapper, AutoMapper]]
79327434 88703 4612556 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Int32, mscorlib]]
6c38e4e4 88684 5675776 System.Threading.ReaderWriterLockSlim
79330b24 87736 6458012 System.String
000d9c88 129 24186884 Free
793042f4 221202 101117016 System.Object[]
6c38e4a0 22703104 544874496 System.Threading.ReaderWriterCount

I can't find much information on the System.Threading.ReaderWriterCount, as it seems to be the problem. What is the likely cause? Or failing that what's the best next step to work that out? Based on the pointer from the given answer I had a look at ReaderWriterLockSlim. I wasn't using it directly, but I saw that it had 88684 instances, digging deeper I saw quite a few classes with that number of instances, pointing to AutoMapper.MappingEngine. This should be a singleton, so I've had a look at where it's being created. I suspect that it's the DI container and have made some changes around that to see if it helps

View 1 Replies

C# - Out Of Memory Exception While Writing 300dpi Images

Jan 19, 2011

I have a requirement that to create a image with 300DPI, but during the composition of image, like addding the resources (font, images) I am getting out of memory exception.

using (Bitmap pg = new Bitmap(GetPixelsFromInches(float.Parse(pageWidth), dpi, actualDpi), GetPixelsFromInches(float.Parse(pageHeight), dpi, actualDpi)))
{
pg.SetResolution(float.Parse(dpi), float.Parse(dpi));
Graphics gr = Graphics.FromImage(pg);
gr.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
System.Drawing.Rectangle pgRect = new System.Drawing.Rectangle(0, 0, pg.Width, pg.Height);
SolidBrush solidWhite = new SolidBrush(Color.White);
gr.FillRectangle(solidWhite, pgRect);
currentPageDisplayed = xNode.Attributes["id"].Value;
foreach (XmlElement xElement in xNode)
{
//Here I am writing each elements, like texts or images.
DrawImageForElements(xElement, , dpi, actualDpi);
}
MemoryStream myMemoryStream = new MemoryStream();
//pg.Save(myMemoryStream, System.Drawing.Imaging.ImageFormat.Bmp);
String filename=@"c:images" + currentPageDisplayed + "+.png";
pg.Save(filename, System.Drawing.Imaging.ImageFormat.Png);
myMemoryStream.Dispose();
gr.Dispose();
pg.Dispose();
}

View 1 Replies

C# - How To Solve Out Of Memory Exception Error In Entity Framework

Apr 5, 2010

these below codes give whole data of my Rehber datas. But if i want to show web page via Gridview send me out of memory exception error.

[code]....

View 1 Replies

DataSource Controls :: Datatable To Excel Memory Exception?

Feb 1, 2010

[Code]....

View 4 Replies

Crystal Reports :: Out Of Memory Exception While Reading The Records

Feb 9, 2011

im using sap crystal report version 13.0.2000.0. i've 27,000 records to be printed but when i run my application the exception error is displayed "Out Of Memory".. i've my appliation in VS2010 and OS is server 64bit and 4GB RAM..

View 1 Replies

Controls :: Export To Excel - System Is Out Of Memory Exception

Nov 22, 2013

We are using below code to export gridview data to excel. It is working fine when export 2 or 3 months data with more than 120,000 rows but we can try to export data for more than 12 months which almost contain 480,000 rows so it generates error

"System is out of memory exception" ....

View 1 Replies

Web Forms :: SQLBulkCopy Out Of Memory Exception For Larger Files

Dec 23, 2015

I'm using SqlBulkCopy to load large file into databse, but a file bigger than 200k give me an error outofmemoryexception. Is there any way to append data into database from a file splitted in two. the first time I can use SqlBulkCopy, but to append second file into my table.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved