473,695 Members | 2,178 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 1697
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
21641
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
3191
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
1362
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
4917
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
1225
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
1274
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
1696
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
1844
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
23851
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
8631
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8572
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
9115
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
8984
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...
1
8847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7661
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...
0
4340
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1976
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.