大网数据广告活动
Web服务器与PHP

Error when you use Server.Transfer

· 52CE 我爱测

This article provides the resolution to solve the 'Error Executing Child Request' error.

This article helps you resolve the problem that an error (executing child request) occurs when you transfer control from an ASP.NET page to an Active Server Pages (ASP) page in Internet Information Services (IIS).

Original product version:   ASP.NET
Original KB number:   320439

Symptoms

When you try to use the Server.Transfer or the Server.Execute method in your ASP.NET page to transfer control from an ASP.NET page to an ASP page, you might receive the following error message:

Error executing child request for PageName.asp.

The PageName.asp in the error message is the name of your ASP page.

Cause

IIS dispatches the Server.Transfer or the Server.Execute request to the appropriate Internet Server Application Programming Interface (ISAPI) extension based on the extension of the requesting file. For example, a request for an .aspx page is dispatched to the Aspnet_isapi.dll ISAPI extension.

After the request is dispatched to appropriate ISAPI extension, the ISAPI extension cannot call another ISAPI extension. You receive the error message that is listed in the Symptoms section because the Aspnet_isapi.dll file, which handles requests to ASP.NET pages, cannot forward the request to the Asp.dll file, which handles requests to ASP pages.

Resolution

To resolve this problem, use the Response.Redirect method to redirect the request from an ASP.NET page to an ASP page.

Status

This behavior is by design.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 04/15/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。