Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Error executing child request [modified] {can anyone help please...}

Error executing child request [modified] {can anyone help please...}

Scheduled Pinned Locked Moved C#
helphtmlsysadmin
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rijz
    wrote on last edited by
    #1

    Hi, I am trying to redirect from the current aspx page to an html page using Response.Redirect. But once it comes back to the aspx page the Session Values are destroyed. So I tried the following alternatives... but throwing errors!! 1) string srvname = Request.ServerVariables["SERVER_NAME"].ToString(); Server.Transfer("http://"+ srvname + /Project1/Part2/page2.html",true); Error: {"Invalid path for child request 'http://localhost/Project1/Part2/page2.html'. A virtual path is expected." } 2)Server.Transfer("/Project1/Part2/page2.html,true); Error: {"Error executing child request for ("/Project1/Part2/page2.html" } 3)Response.Redirect("Project1/Part2/page2.html") disposes the Session value once it returns back to the page…. Please help me out.. Thanks in advance Rijz

    modified on Wednesday, August 13, 2008 8:33 AM

    R 1 Reply Last reply
    0
    • R Rijz

      Hi, I am trying to redirect from the current aspx page to an html page using Response.Redirect. But once it comes back to the aspx page the Session Values are destroyed. So I tried the following alternatives... but throwing errors!! 1) string srvname = Request.ServerVariables["SERVER_NAME"].ToString(); Server.Transfer("http://"+ srvname + /Project1/Part2/page2.html",true); Error: {"Invalid path for child request 'http://localhost/Project1/Part2/page2.html'. A virtual path is expected." } 2)Server.Transfer("/Project1/Part2/page2.html,true); Error: {"Error executing child request for ("/Project1/Part2/page2.html" } 3)Response.Redirect("Project1/Part2/page2.html") disposes the Session value once it returns back to the page…. Please help me out.. Thanks in advance Rijz

      modified on Wednesday, August 13, 2008 8:33 AM

      R Offline
      R Offline
      Rijz
      wrote on last edited by
      #2

      friends, I doubt html page execution is totally out of the C# compiler process and so the session values are getting destroyed. Is there any other alternatives so that I can maintain the Session values? Please help me out... Thanks, Rijz

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups