Problem with Server.Transfer
OK, I am in the middle of splitting out code from a huge project into its own projects. I have moved a set of .aspx files into their own project. The first project needs to send all objects to the a new project, so I choose to use the Server.Transfer function.
Every time I try this function I receive the following error.
"Error executing child request for "/Test2/WebForm1.aspx"
The code for the server transfer is:
Server.Transfer("/Test2/WebForm1.aspx")
I think the problem is with my directory structure. Here is what it is.
The page that is doing the Server.Transfer resides in.
wwwroot/TestTransfer/View/WebForm1.aspx (where TestTransfer is my virtual directory name)
The page that I am trying to transfer to is located in.
wwwroot/Test2/WebForm1.aspx (where Test2 is my virtual directory name)
I have tried every combonation of dirctory names and nothing is working. Any Ideas?
Thanks