473,656 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

__VIEWSTATE different between localhost and server

Hello,

I was testing my application on my localhost, when I View Source, I see
the __VIEWSTATE and its only small in size (about 500 bytes).

When I copy this same application over to our IIS server and then run
it, again do a View Source, the __VIEWSTATE balloons to over 200,000
bytes.

This is the exact same program, viewing on the same page of the
program, and it gives two hugely different __VIEWSTATE contents in the
generated HTML. I even navigate the program is the same manner so that
field content is the same.

I understand what the view state does and how it used to pass
information back and forth in order to maintain the content/state of
the controls.

What would/could cause this? I feel that since the program is the same
(same binaries) it must be a server related configuration.

Appreciate any comments or suggestions.

Regards,
Eric

Sep 14 '06 #1
1 1648
Look at the <machinekeysett ings; it could be a different algorithm (this
is less likely than the next suggestion). Also, examine the data differences
between the production database and your test/dev database. You may be
displaying too much data when on the server.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"Eric" <ri*****@gmail. comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Hello,

I was testing my application on my localhost, when I View Source, I see
the __VIEWSTATE and its only small in size (about 500 bytes).

When I copy this same application over to our IIS server and then run
it, again do a View Source, the __VIEWSTATE balloons to over 200,000
bytes.

This is the exact same program, viewing on the same page of the
program, and it gives two hugely different __VIEWSTATE contents in the
generated HTML. I even navigate the program is the same manner so that
field content is the same.

I understand what the view state does and how it used to pass
information back and forth in order to maintain the content/state of
the controls.

What would/could cause this? I feel that since the program is the same
(same binaries) it must be a server related configuration.

Appreciate any comments or suggestions.

Regards,
Eric

Sep 14 '06 #2

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

Similar topics

9
3446
by: j askey | last post by:
I have a strange bandwidth issue that I have finally tracked down to something fairly specific if anyone has any ideas... Setup: Win2003 Server, PHP 4.3.4, IIS6.0, ISAPI Network: DSL line with a Cisco 678 router using NAT and static port maps. Two switches between webserver and Cisco. Problem: Accessing PHP driven site via any computer except the web server is about 20 times slower. I can get fast response on the server
2
1982
by: Me | last post by:
Is there anyway to control the style/layout of this field? ..NET doesn't generate an ID for it so you can create a style for it or manipulate it in code. I've looked on MSDN etc. but can't find the answer. Thanks in advance, RWK
3
1374
by: Matt | last post by:
I have a solution file (*.sln) which contains web service and web console projects. This solution file is shared in a team development environment (via a source library tool). When opening the solution file on different machines it complains about not being able to find the virtual web directories (always with a root reference of http://localhost/...) even though they exist. From examining the solution files it appears that they are...
10
2978
by: Jason Pettys | last post by:
I have an ASP.NET page that my client wants to e-mail. So in IE we choose File > Send > Page by E-mail, which opens up either Outlook or Outlook Express with the HTML page content as the message body. EXCEPT one nasty detail is that in the e-mail client, <input type="hidden"> elements are rendered as text boxes, which the __VIEWSTATE is one of, and so the viewstate is displayed in a textbox at the top of the e-mail. I've figured out...
0
4275
by: msnews.microsoft.com | last post by:
I have been raking my brains on why this does not work. I get back the same login screen again instead of the home page redirection which should occur after a successful login: 'create a cookie container so it can be shared between requests so that authentication can be maintained Dim objCookieCont As New CookieContainer 'create request to get the __VIEWSTATE of Authorize.NET's Logon.aspx page
1
3472
by: Thom Little | last post by:
I have a simple web service that requires no input and returns a character string. I created the service and FTPd it to a remote server. The .dll to the .bin directory and the single .asmx file to a directory called Services. When referenced from a webapplication running on localhost it operates correctly. When referenced from a webapplication running on the same remote server as the webservice it operates correctly.
10
3375
by: TS | last post by:
i just noticed the website i created in VS 2005 is running on a different port than the default. I see that it is running on the local web server, and also that the website i created isn't in IIS. My crystal report looks weird because it is trying to show images from the crystalreportviewers10 virtual directory based on the current website running, which in this case is localhost:1169, but actuall the crystalreportviewers10 virtual...
2
3810
by: Jimmy | last post by:
Assuming there're 2 different instances of Tomcat. e.g. Tomcat #1 runs on http://localhost:10001/webapp1 Tomcat #2 runs on http://localhost:10002/webapp2 If there's Javascript in JSP which runs in webpp1 contains the following ... AjaxAnywhere.getAJAX("http://localhost:10002/webapp2", "zoneInJsp1Webapp1");
6
1696
by: Ivan Gasparetto | last post by:
Is it possible to change the __VIEWSTATE id? The reason is we shouldn't have any id starting with underscores on XHTML pages. Thank you
0
8382
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
8717
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
8498
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
8600
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
7311
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
5629
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
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.