为 StartProductConvert.aspx 执行子请求时出错。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 为 StartProductConvert.aspx 执行子请求时出错。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
[HttpException (0x80004005): 为 StartProductConvert.aspx 执行子请求时出错。]
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3185345
   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +747
   System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +56
   ProductConvert_ProductConvert.btnStartConvert_ServerClick(Object sender, EventArgs e) +21
   System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e) +105
   System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(String eventArgument) +106
   System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
"~",Server.Mappath都无法解决,不知道为什么

解决方案 »

  1.   

    这里 不是StartProductConvert.aspx 中的 Server.Transfer出错而是   Server.Transfer()具体 转向到的页面出错在这个页面 设置断点 调试看是那里出错了
      

  2.   

    噢,忘记了,在VS05中“运行”和“调试”都没有错
    只是在IIS中执行就会出这样的错误
    是不是我的IIS配置有问题呀
    那具体如何改法呀
      

  3.   

    //Server.Transfer("~/DataProcess/ProductConvert/StartProductConvert.aspx", true);
    //Server.Transfer("./StartProductConvert.aspx", true);
    Server.Transfer("StartProductConvert.aspx", true);
    //Server.Transfer(Server.MapPath("StartProductConvert.aspx"), true);
    这样方法都不行,在IIS中
      

  4.   

    是不是 iis里设置了不能访问 上级目录
      

  5.   

    Server.Transfer("StartProductConvert.aspx", true);
    -----------
    改成:
    Server.Transfer("StartProductConvert.aspx")
      

  6.   

    问题解决了,谢谢各位
    重启IIS后这个问题就没有了
    不知道是不是微软的BUG
    在老外的网站上说是"strange behavior valid"