473,785 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

viewstate - datagrid and intermittent errors.....help

Hi-
I'm developing a asp.net web application and everything has proven fine
on the dev and acceptance environment.
We've moved the code up to our windows server 2003 prod environment and
get the following intermittent error when browsing the web page through
a client browser (the action causing this is paging though a datagrid-
although it randomly errors, rather than erroring all the time):
_______________ _
Invalid character in a Base-64 string
at System.Convert. FromBase64Strin g(String s) at
System.Web.UI.L osFormatter.Des erialize(String input) at
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
_______________ _

However if I run the application on the server itself I never get this
intermittent error. Whilst it is a load balanced environment I've
directed (within my host file) the browser to hit a specific server.
Also for good measure I've set the following:
enableViewState Mac="false"
within the page in question.

Does anyone have any ideas on what is causing this. The intermittent
nature makes it all the more confusing.

many thanks

devo

Nov 17 '05 #1
2 1709
In the NLB setup make sure you are using class c affinity.

--

Derek Davis
dd******@gmail. com

<de****@gmail.c om> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hi-
I'm developing a asp.net web application and everything has proven fine
on the dev and acceptance environment.
We've moved the code up to our windows server 2003 prod environment and
get the following intermittent error when browsing the web page through
a client browser (the action causing this is paging though a datagrid-
although it randomly errors, rather than erroring all the time):
_______________ _
Invalid character in a Base-64 string
at System.Convert. FromBase64Strin g(String s) at
System.Web.UI.L osFormatter.Des erialize(String input) at
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
_______________ _

However if I run the application on the server itself I never get this
intermittent error. Whilst it is a load balanced environment I've
directed (within my host file) the browser to hit a specific server.
Also for good measure I've set the following:
enableViewState Mac="false"
within the page in question.

Does anyone have any ideas on what is causing this. The intermittent
nature makes it all the more confusing.

many thanks

devo

Nov 17 '05 #2
many thanks for the reply Derek- I was hoping you could expand a little
on your potential solution.

thanks

devo

carion1 wrote:
In the NLB setup make sure you are using class c affinity.

--

Derek Davis
dd******@gmail. com

<de****@gmail.c om> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hi-
I'm developing a asp.net web application and everything has proven fine
on the dev and acceptance environment.
We've moved the code up to our windows server 2003 prod environment and
get the following intermittent error when browsing the web page through
a client browser (the action causing this is paging though a datagrid-
although it randomly errors, rather than erroring all the time):
_______________ _
Invalid character in a Base-64 string
at System.Convert. FromBase64Strin g(String s) at
System.Web.UI.L osFormatter.Des erialize(String input) at
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
_______________ _

However if I run the application on the server itself I never get this
intermittent error. Whilst it is a load balanced environment I've
directed (within my host file) the browser to hit a specific server.
Also for good measure I've set the following:
enableViewState Mac="false"
within the page in question.

Does anyone have any ideas on what is causing this. The intermittent
nature makes it all the more confusing.

many thanks

devo


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
292
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get the following intermittent error when browsing the web page through a client browser (the action causing this is paging though a datagrid- although it randomly errors, rather than erroring all the time): ________________ Invalid character in a...
9
21651
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter the results in the grid. Say you filter the grid for records that have a certain condition set to "NO" (in this case a checkbox). In this scenario the search returns one result. If I then check the checkbox ("YES") and save it, I now get my message...
2
3199
by: Jay Walker | last post by:
I created a custom DataGridColumn based on Marcie Robillard's MSDN Article: Creating Custom Columns for the ASP.NET Datagrid http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/creatingcustomcolumns.asp The problem I am having is that the data in the custom datagridcolumn is not saved to viewstate and after postback, the column does not contain data.
1
1369
by: Graham | last post by:
I have created a server control that reads data from an xml file and renders either a datagrid of entries from a database or group of form controls to allow editing of an individual entry from the same database. The Xml defines how the datagrid and edit form looks and what fields each displays. The edit form display is perfect but I am having some problems with the datagrid list display. The datagrid has sorting and pagination enabled and...
9
4929
by: Jamie | last post by:
I am receiving an Invalid ViewState error after posting back to the same page twice. Consistently the error occurs after the second postback and not after the first. I have looked into creating a static machinekey in the machine.config and that did not help. I believe that issue only occurred when there was an inconsistent viewstate error. The error I am faced with consistently occurs. Are there any known problems with the ViewState...
1
1228
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get the following intermittent error when browsing the web page through a client browser (the action causing this is paging though a datagrid- although it randomly errors, rather than erroring all the time):
6
1279
by: Frank | last post by:
Can someone please tell me when the ViewState is loaded? My understanding, based on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconControlExecutionLifecycle.asp is that it should be loaded before the Page_Load event, however, given the following code I don't get the expected results. private void Page_Load(object sender, System.EventArgs e) { if (Page.IsPostBack & ViewState != null)
3
1704
by: Ray Stevens | last post by:
We are having a maddening problem with random "validation of viewstate MAC failed" errors, even if the web farm is shut down to a single server. It now susepect that Norton antivirus is causing application pool recylcing on IIS 6. Does this sound plausible... anyone else seeing this problem?
3
1849
by: steven | last post by:
Hi I've got a client who's getting intermittent errors about invalid viewstate. it happens on random pages. I never get these errors myself. I've already done everything Microsoft recommends to address these kinds of issues short of disabling antivirus protection on my client's pc. From what I understand, viewstate should be maintained by the server. Is it possible there's something on the client's pc I should be looking at?
4
23862
by: JamTech | last post by:
The Script Resource and the Web Resource files are generating intermittent errors in my application. I have been trying to chase the cause of the problem but to no avail. I notice that the “d” parameter that is passed is some how corrupted and I can’t for the life of me figure out what’s causing this parameter to be corrupted. I noticed that JavaScript code that in my application is some how getting intertwined with the hash code that’s...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8974
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.