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

Server.Transfer fails, but only on initial page load.

Hi,

I'm developing a reporting app that works as a subordinate to other apps,
ie, users still see the menu structure for the app they're working in, but
generate their report in my app.

When the user selects the menu option for my report, they go through a
session transfer page, and they are Response.Redirect'ed to my app. This
works fine. However, on the index.aspx page of my app, when they click a
report, or generate a new report, they receive:

Error executing child request for "./Report.aspx".

If they keep this same window open, and just navigate back to the index.aspx
page, they can click the report and it will continue without problem. But,
if they close the window and open a new one, the same issue occurs.

I've been trying for days to figure out why this is happening. I added the
"./" to make sure it's looking in the correct directory, but to no avail.
Also, instead of just Server.Transfer, I tried
HttpContext.Current.Server.Transfer, which also did not help. I've tried
Response.Redirect, but that gives me a different problem, and never works, at
all.

If anyone knows the reason for this, and a solution, it would be greatly
appreciated.

---Code---

if(((Label)Page.FindControl(cId)).Text != "*")
{
Session["Advanced"] = "F";
HttpContext.Current.Server.Transfer("./DataSources.aspx",true);
}
else
{
Session["Advanced"] = "T";
HttpContext.Current.Server.Transfer("./Advanced.aspx",true);
}

---End---

Thanks
Dec 21 '06 #1
1 2952
bpd
Try setting EnableViewStateMac to false or see if this helps:
http://support.microsoft.com/kb/320439
sheuertz wrote:
Hi,

I'm developing a reporting app that works as a subordinate to other apps,
ie, users still see the menu structure for the app they're working in, but
generate their report in my app.

When the user selects the menu option for my report, they go through a
session transfer page, and they are Response.Redirect'ed to my app. This
works fine. However, on the index.aspx page of my app, when they click a
report, or generate a new report, they receive:

Error executing child request for "./Report.aspx".

If they keep this same window open, and just navigate back to the index.aspx
page, they can click the report and it will continue without problem. But,
if they close the window and open a new one, the same issue occurs.

I've been trying for days to figure out why this is happening. I added the
"./" to make sure it's looking in the correct directory, but to no avail.
Also, instead of just Server.Transfer, I tried
HttpContext.Current.Server.Transfer, which also did not help. I've tried
Response.Redirect, but that gives me a different problem, and never works, at
all.

If anyone knows the reason for this, and a solution, it would be greatly
appreciated.

---Code---

if(((Label)Page.FindControl(cId)).Text != "*")
{
Session["Advanced"] = "F";
HttpContext.Current.Server.Transfer("./DataSources.aspx",true);
}
else
{
Session["Advanced"] = "T";
HttpContext.Current.Server.Transfer("./Advanced.aspx",true);
}

---End---

Thanks
Dec 22 '06 #2

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

Similar topics

6
by: Tlink | last post by:
I am using server.transfer from within vb.net, which is called from asp.net I find that I can move to correct page the first time the server.transfer is executed but all subsequent attempts cause a...
4
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a...
2
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer...
8
by: Cathie | last post by:
Hi guys, I want to do a Server.Transfer to get to a second page, so that I may retrieve variables I have set in the first page. I'm doing that with the usual Server.Transfer("pagename", true). ...
2
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings...
4
by: Keith Patrick | last post by:
I have an app where a Shockwave splash animation starts off my app and then sets its parent iframe's src to the value of a default page "BasicReports". BasicReports has a link to another report...
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
2
by: P K | last post by:
I am using server.transfer for a website being developed in vs.net 2005 And I need to get the posted values after server.transfer. For this I set the second parameter "true" in the transfer...
2
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi, I'm using Threads, and when I try to do Server.Transfer, I recieved an error. (child object does not exist...) My Code: Dim t As New Thread(AddressOf Hilo) Private Sub Hilo()...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.