Reputation: 4530
I can't find any info on this... I keep getting some error saying I need IIS integrated mode. Does Server.TransferRequest
not work on visual studio?
My start options say "Use Default Server".
Here is how it is being used:
Server.TransferRequest("RegisterSuccess.aspx?email="+ tbEmail.Text);
Upvotes: 2
Views: 1421
Reputation: 1645
Correct. This will not work with the VS Dev Server. Here are details from MSDN. The VS Dev Server does not very closely match IIS 7 and it doesn't run in integrated mode so you're better off not using it if that's what your production environment is. And TransferRequest requires Integrated mode.
Upvotes: 3
Reputation: 14460
"The new TransferRequest
method performs a complete request by using an IIS 7
worker thread. This means that the page request will go through the complete ASP.NET
pipeline, giving every module a chance of interacting with the request."
See more ASP.NET: Using Server.TransferRequest
"(ASP) features introduced with Internet Information Services (IIS) version 5.0
is a transfer method for the ASP built-in Server object."
See more How to Use the Server.Transfer Method
Upvotes: 4