简体   繁体   English

Server.Transfer对于Facebook应用失败

[英]Server.Transfer is failing for Facebook app

I have a facebook app which I'm trying to execute a Server.Transfer on. 我有一个Facebook应用,正在尝试执行Server.Transfer。 On my dev box everything works fine but on our server, we get an error: 在我的开发箱上,一切正常,但在我们的服务器上,出现错误:

Error executing child request for TestPage.aspx. 执行TestPage.aspx的子请求时出错。
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) 在System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler处理程序,TextWriter编写器,布尔值saveForm,布尔值setPreviousPage,VirtualPath路径,VirtualPath filePath,字符串physPath,异常错误,字符串queryStringOverride)
at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) 在System.Web.HttpServerUtility.Execute处(字符串路径,TextWriter编写器,布尔值saveForm)
at System.Web.HttpServerUtility.Transfer(String path) 在System.Web.HttpServerUtility.Transfer(字符串路径)
at Games_Facebook_MasterPage.OnConnected(JsonObject user) 在Games_Facebook_MasterPage.OnConnected上(JsonObject用户)

I'm not sure if this is a server setting issue or something to do with it being a Facebook app. 我不确定这是服务器设置问题还是与Facebook应用有关。

Suggestions? 有什么建议吗?

I found the cause of the problem. 我找到了问题的原因。 TestPage.aspx was throwing an exception in the Page_Load and Server.Transfer was swallowing the exception and throwing its own. TestPage.aspx在Page_Load中引发异常,而Server.Transfer吞下该异常并引发异常。 Because of this, it seemed like Server.Transfer was failing but in reality it was TestPage.aspx 因此,Server.Transfer似乎失败了,但实际上是TestPage.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM