使用Server.Transfer时出现Asp.net错误 [英] Asp.net Error when using Server.Transfer
本文介绍了使用Server.Transfer时出现Asp.net错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我收到错误消息"对ShowResult.aspx执行子请求时出错.",
当我使用Server.Transfer("ShowResults.aspx")时.
它在本地计算机上运行良好,但是当我在服务器上部署它时,它会显示上述错误.
我只想使用Server.Transfer而不使用Response.Redirect,因为我必须传递参数.
我应该怎么办 ?有帮助吗?
预先感谢,
Varshini M.
Hi All,
I''m getting an error "Error executing child request for ShowResult.aspx.",
when i am using Server.Transfer("ShowResults.aspx").
It is working fine on local machine, but when i deploy it on server, it display above error.
I want to use only Server.Transfer not Response.Redirect cause i have to pass the parameters.
what should i do ? Any help ?
Thanks in advance,
Varshini M.
推荐答案
检查以下内容即可解决您的问题:
http://support.microsoft.com/kb/320439 [ http://stackoverflow.com/questions/2361690/server-transfer-throws-error-executing-child-request-how-to解决 [ http://www.banmanpro.com/support2/Error_executing_child_request.asp [
check these to resolve your issue:
http://support.microsoft.com/kb/320439[^]
http://stackoverflow.com/questions/2361690/server-transfer-throws-error-executing-child-request-how-to-resolve[^]
http://www.banmanpro.com/support2/Error_executing_child_request.asp[^]
hope it helps :)
尝试以下方法,而不是Server.Transfer
Try the following instead of Server.Transfer
HttpContext.Current.RewritePath("somefile.aspx");
希望对您有帮助
Hope it helps
这篇关于使用Server.Transfer时出现Asp.net错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文