473,396 Members | 2,029 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,396 software developers and data experts.

Server.Execute against same page hangs ASP.NET

We have a page which sends a copy of itself via email to customers. To
enable this, the page calls Server.Execute on itself into a text stream and
strips its own output down to HTML presentable to the customer.

In our Test environment (but not our DEV or Local envs) we are experience an
ASP.NET lockup. The WHOLE asp.net architecture freezes, and we must reboot
the server before any of our other ASP.NET apps will work.

This is a sample of the code which appears to be the culprit. We commented
out the Server.Execute and substituted some junk text to build sbText and the
code worked fine on our test environment again.

-- Locks server
StringBuilder sb = new StringBuilder();
sb.Append(base.AppRoot).Append("/ER/OOWLetter.aspx?ERNumber=");
sb.Append(erNumber);
System.IO.TextWriter textwriter = new System.IO.StringWriter();
StringBuilder sbText = new StringBuilder(textwriter.ToString());
Server.Execute(sb.ToString(), textwriter);

Is there any known issue with Server.Execute on itself?
Nov 18 '05 #1
2 1939
I expect it would just cause a recursive request of the page requesting
server.execute - and hang your server?

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Chuck Haeberle" <Chuck Ha******@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
We have a page which sends a copy of itself via email to customers. To
enable this, the page calls Server.Execute on itself into a text stream and strips its own output down to HTML presentable to the customer.

In our Test environment (but not our DEV or Local envs) we are experience an ASP.NET lockup. The WHOLE asp.net architecture freezes, and we must reboot the server before any of our other ASP.NET apps will work.

This is a sample of the code which appears to be the culprit. We commented out the Server.Execute and substituted some junk text to build sbText and the code worked fine on our test environment again.

-- Locks server
StringBuilder sb = new StringBuilder();
sb.Append(base.AppRoot).Append("/ER/OOWLetter.aspx?ERNumber=");
sb.Append(erNumber);
System.IO.TextWriter textwriter = new System.IO.StringWriter();
StringBuilder sbText = new StringBuilder(textwriter.ToString());
Server.Execute(sb.ToString(), textwriter);

Is there any known issue with Server.Execute on itself?

Nov 18 '05 #2
It shouldn't, but I'll look into it.

The call to Server.Execute occurs only within a postback when a button on
the page is pushed to generate the email. As I said, this poses no problem
whatsoever on our local machines (5 developers) or on our development server
environment. Only in our Test env is there an issue.

"John Timney (Microsoft MVP)" wrote:
I expect it would just cause a recursive request of the page requesting
server.execute - and hang your server?

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Chuck Haeberle" <Chuck Ha******@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
We have a page which sends a copy of itself via email to customers. To
enable this, the page calls Server.Execute on itself into a text stream

and
strips its own output down to HTML presentable to the customer.

In our Test environment (but not our DEV or Local envs) we are experience

an
ASP.NET lockup. The WHOLE asp.net architecture freezes, and we must

reboot
the server before any of our other ASP.NET apps will work.

This is a sample of the code which appears to be the culprit. We

commented
out the Server.Execute and substituted some junk text to build sbText and

the
code worked fine on our test environment again.

-- Locks server
StringBuilder sb = new StringBuilder();
sb.Append(base.AppRoot).Append("/ER/OOWLetter.aspx?ERNumber=");
sb.Append(erNumber);
System.IO.TextWriter textwriter = new System.IO.StringWriter();
StringBuilder sbText = new StringBuilder(textwriter.ToString());
Server.Execute(sb.ToString(), textwriter);

Is there any known issue with Server.Execute on itself?


Nov 18 '05 #3

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

Similar topics

0
by: Mark Marsella | last post by:
I have a content management system with a html editor embedded in a page (uses a text area tag) within the tag I use Server.Execute(pageToExecute), it works for some pages but others it hangs the...
4
by: J Reed | last post by:
I am working on a project where I will be selecting an n'th number of records for 700 reps based on zip codes. My question is the below sql statement worked on an access table... sSQL =...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
18
by: Thomas Lunsford | last post by:
I have inherited a set of asp pages that I now need to augment. In order to minimize changes to production code, I would like to make a "call" to an asp page from a new asp page. Existing code is...
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
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.