473,387 Members | 3,033 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.

Server.Execute doesn't work properly in all environments

Hi,

I have an ASP.NET page that needs to output itself into an HTML file, so I
use the Server.Execute method to do this and then the browser requests the
HTML that has been generated (strange concept but I won't go into all the
business details). This scheme is repeated for 4 pages in my application.

The above works pretty well on my development machine, but on our test
environment, I get 2 sorts of error:

1. In one of the 4 forms, I get the "System.Web.HttpException: Failed to
load viewstate." Fine.

2. Worst, in the remaining 3 forms, the page enters in a neverending
recursive loop. But the call to Server.Excute is located in the Click event
handler of a Button, so I expected this event handler to run only in the
first request, not in the instance run by Server.Execute.

So, I believe my code is clean because it works on my machine. Maybe I am
missing some details related to server configuration and there's something
on the test server that makes the app work unproperly.

Any help would be greatly appreciated. Thanks.
Mar 7 '06 #1
0 871

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

Similar topics

1
by: Mike | last post by:
Hi, I'm new to ASP and can't get this form to work. It's a simple page that draws a calendar for the current month and then you can select a new month and it draws the new calendar. It works...
5
by: David C | last post by:
We moved an ASP application from Win 2000 server to Win 2003 server and now the Server.Execute method does not work. It gives me ASP 0228 error. What gives? Thanks. David Chase
0
by: Mark Barinstein | last post by:
Hello. W2K, db2 v7, FP10a. Before now our replication worked properly. But some days ago capture suddenly stopped loggin and filling cd tables without any messages. The last message was like...
1
by: TT (Tom Tempelaere) | last post by:
Hi there, I made a custom drawn ComboBox. The DrawItem event handler is (explanation follows) <code> private void OnDrawItem ( object sender, System.Windows.Forms.DrawItemEventArgs e ) {
1
by: Uriy leyfm | last post by:
Hello! I have problem with my IIS or framework. It's strange behavior happened. When i put on my form some server controls and run form in browser, the form doesn't show controls. I don't know...
3
by: ajfish | last post by:
Hi, I have a web form with smart navigation turned on. the html has an onload event which calls a javascript function and the contents of this function are dynamically generated on the server...
13
by: chadsspameateremail | last post by:
I might have found a problem with how preg_match works though I'm not sure. Lets say you have a regular expression that you want to match a string of numbers. You might write the code like this:...
0
by: Joe | last post by:
Hi, I have a form that I want to use to enter data only. The first field on the form is a date field. I created a macro to open the form in data mode add. When I click on the macro name to...
0
by: sourpo | last post by:
wonder if anyone can help... I have access db with a whole lot of vb code... If i use access 2000 it works perfectly but when using 2003 it doesn't work properly. The db copies outlook mailboxes......
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
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,...
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.