473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Viewstate Errors -- Please Help!

Background:
I wrote an ASP.NET website in C# and it went into production back in
February 2004. The production webservers (2 servers using sticky-ip
load balancing) are running on Windows 2000 server. I have changed
the machineKeys to match on both servers since they are pseudo-Load
Balanced. The website is using Forms Authentication and the userid &
password are stored in a SQL Server 2000 Database. There are not any
dynamic control creation sections on the page.

Problem:
These HttpExceptions are happening periodically on every page
including the login page. I have turned off the enableViewstateMAC in
the machine.config file and we no longer had any HttpExceptions. Due
to the security risk I have turned that feature back on and am trying
to find a solution to this issue. As soon as I changed the
"enableViewstateMAC" from false to true we recieved several errors.
All the errors that have happened so far are only on the login page so
it is before the user even logs in.

You can view another discussion that I have had on the Code Project
website http://www.codeproject.com/script/comments/forums.asp?msg=785002&forumid=12076"]
if you would like to find out more background information about this
problem.

Thanks for your help,
Paul
Nov 18 '05 #1
1 851
You can try moving it to the Server to reduce the corruption:

http://aspalliance.com/articleViewer.aspx?aId=72&pId=
--
Joe Fallon


"Paul" <an*******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Background:
I wrote an ASP.NET website in C# and it went into production back in
February 2004. The production webservers (2 servers using sticky-ip
load balancing) are running on Windows 2000 server. I have changed
the machineKeys to match on both servers since they are pseudo-Load
Balanced. The website is using Forms Authentication and the userid &
password are stored in a SQL Server 2000 Database. There are not any
dynamic control creation sections on the page.

Problem:
These HttpExceptions are happening periodically on every page
including the login page. I have turned off the enableViewstateMAC in
the machine.config file and we no longer had any HttpExceptions. Due
to the security risk I have turned that feature back on and am trying
to find a solution to this issue. As soon as I changed the
"enableViewstateMAC" from false to true we recieved several errors.
All the errors that have happened so far are only on the login page so
it is before the user even logs in.

You can view another discussion that I have had on the Code Project
website http://www.codeproject.com/script/comments/forums.asp?msg=785002&forumid=12076"] if you would like to find out more background information about this
problem.

Thanks for your help,
Paul

Nov 18 '05 #2

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

Similar topics

4
by: Ersin Gençtürk | last post by:
Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The View State is invalid for this page and might be...
1
by: Mind Dragon | last post by:
I have an ASP application that works fine locally but when it's uploaded occasionally, I get viewstate errors. Another thing is that the viewstate for that page is disabled. There are cases where I...
2
by: Janaka | last post by:
We have managed to lock down 99% of the application errors occurring in our asp.net sites. The only errors which occur on a regular basis now are viewstate errors. We have disabled viewstate on...
2
by: Chris Becker | last post by:
I am currently hosting my site with webhost4life.com and my visitors (well, just the visitors that are admins and try to do data entry, modification and removale) are constantly getting "Invalid...
7
by: John | last post by:
Hi all, I need finality on this once and for all please. I have a main page which contains a couple of placeholders and within these placeholders, depending on what the user presses, I load...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
6
by: hitendra15 | last post by:
Hi I have created web user control which has Repeater control and Linkbutton in ItemTemplate of repeater control, following is the code for this control On first load it runs fine but when...
2
by: Jeremy Chapman | last post by:
This is odd behavior. In my aspnet 2.0 app (basic app, nothing out of the ordinary here), if I am using my iPAQ handheld device and I hit the refresh button on my page, I get an error "Validation...
0
by: Walter | last post by:
Hi, can someone please help me with my custom control viewstate problem....I haven't slept for hours trying to get this fixed. I am making two custom controls which will be included on a single...
9
by: =?Utf-8?B?TUNN?= | last post by:
I'm sure the answer to my question varies depending on the situation, but I am looking for a general "best practice". If I have an asp.net application and I load certain data from a database,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.