468,315 Members | 1,477 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

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 2733
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Tlink | last post: by
4 posts views Thread by Harsh Thakur | last post: by
8 posts views Thread by Cathie | last post: by
4 posts views Thread by Keith Patrick | last post: by
2 posts views Thread by =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.