|
-
Oct 31st, 2003, 04:47 PM
#1
Thread Starter
Lively Member
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
-
Nov 1st, 2003, 06:25 PM
#2
Thread Starter
Lively Member
OK, I figured it out. I had an error on the page that I was trying to transfer to. When I took the Server.Transfer out of the Try Catch block, and let the system show me the error, I was able to figured out what the actual message was. For some reason, the Try Catch exception does not give you the same info as if you let the system display it at run time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|