Server Error in '/prd' Application.

Invalid path for child request 'http://www.google.com'. A virtual path is expected.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Invalid path for child request 'http://www.google.com'. A virtual path is expected.

Source Error:


Line 63:     protected void RedirectAway()
Line 64:     {
Line 65:         Server.Transfer("http://www.google.com");
Line 66:         //Response.Redirect("http://eweb.naccho.org/eweb/DynamicPage.aspx?Site=NACCHO&WebKey=2bf458bd-aac2-423e-b11e-29c925a1caf4", true);
Line 67:     }

Source File: d:\Sites\naccho\nfnaccho\prd\NACCHORedirect.ascx.cs    Line: 65

Stack Trace:


[ArgumentException: Invalid path for child request 'http://www.google.com'. A virtual path is expected.]
   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +1055
   System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +74
   System.Web.HttpServerUtility.Transfer(String path) +46
   NACCHORedirect.RedirectAway() in d:\Sites\naccho\nfnaccho\prd\NACCHORedirect.ascx.cs:65
   NACCHORedirect.Page_Load(Object sender, EventArgs e) in d:\Sites\naccho\nfnaccho\prd\NACCHORedirect.ascx.cs:59
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0