473,387 Members | 1,760 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,387 software developers and data experts.

ViewState, EnableViewStateMAC and two IP addresses in one session

Hi.

I am running an ASP.NET app that is using ViewState.

Everything is fine apart from an issue with viewstate.
Is the client IP address taken into account in encrypting viewstate?

Here is my scenario. Connect to internet. Obtain IP address. Log in to
site. Use site. Get to a page that contains viewstate. Do a postback.
Refresh page. Fine. Now disconnect and reconnect to get a new IP
address. Refresh page. Viewstate error. Problem does not occur if page
has no viewstate or is not postback.

My basic question is : can I enableviewstatemac and allow my end user
to swap his IP address in the middle of a session? This is a valid
situation - for example if a connection to the internet is lost and
the client has to dialup again to continue his task (without closing
his browser window).

Many thanks for listenning and for any responses.

Tony
Nov 19 '05 #1
1 1909
Hi Tony,

I was researching a "ViewState is invalid" error and came across your
post. I do not believe that changing your IP address will affect the
verification based on a test I've performed.

The test was as follows:

1) Create a simple ASPX page
2) Load the page in a web browser on Computer A
3) Save HTML source to a file
4) Add a <base href=""> to the source to point to Computer A
5) Open saved HTML in web browser on Computer B
6) Click a button on the page that performs a post back to Computer B

Step 6 should fail if the IP address was being verified, however things
seemed to work fine for me. Also, I should say I verified that
enableViewStateMAC was set to true in machine.config and was not
overridden in the site's web.config.

Matt Hooper

Nov 19 '05 #2

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

Similar topics

5
by: Hardy Wang | last post by:
Hi all: I developed a web site, it passed various testing internally. When I put this site in production, I receive some error reports from this site saying "the viewstate is invalid for this page...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
2
by: Bartosz Krzywicki | last post by:
I have a problem with the following error: "Server Error in '/sir' Application. -------------------------------------------------------------------------------- The viewstate is invalid for...
7
by: Jason | last post by:
Can anybody help on the following error : The viewstate is invalid for this page and might be corrupted. Description: An unhandled exception occurred during the execution of the current web...
6
by: Gauthier Segay | last post by:
Hello, I've problem on subsequent postbacks after a Server.Transfer was done. In our application framework we have a method that pass parameters (via HttpContext.Items) and navigate to another...
1
by: Tony | last post by:
I would really appreciate it if anyone has any thoughts on this one - it's driving us mad. We have a web site which is using ASP.NET 1.1 and which is load balanced across two web servers with IP...
6
by: scottrm | last post by:
Hi Users seem to be getting the following intermitent error whe they post a form. Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that...
11
by: =?Utf-8?B?R2lsZXMgUGFwd29ydGg=?= | last post by:
I seem to be getting this error message all of a sudden on one of my web apps: System.Web.Configuration.MachineKey.GetDecodedData(Byte buf, Byte modifier, Int32 start, Int32 length, Int32&...
4
by: DavidF | last post by:
Hi, I'm having a problem with viewstate encryption on one of my websites. To encrypt the viewstate, I'm using the following lines in my web.Config file: <pages theme="Default"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.