For years now I've had a "PageRedirect" method that accepted a page name and correctly redirected my app to the specified page. To be more precise, this method worked perfectly when Visual Studio was using its internal web server.
I'm now trying to run the app in IIS7 and peculiar things are happening.
For purposes of this example, I am configuring the Website Properties of my app thusly:
Use Local IIS Web server
Project URL: http://localhost/MyAppName
In the PageRedirect method essentially works like this:
That last line of code is in a try..catch construct and an exception is occurring every time.
I'm confused as to whether I need to alter how PageRedirect creates the string to redirect to or whether I'm failing to do something correctly in Website Properties.
rmdw
Participant
826 Points
1240 Posts
IIS & ApplicationPath
Dec 30, 2012 08:02 AM|LINK
For years now I've had a "PageRedirect" method that accepted a page name and correctly redirected my app to the specified page. To be more precise, this method worked perfectly when Visual Studio was using its internal web server.
I'm now trying to run the app in IIS7 and peculiar things are happening.
For purposes of this example, I am configuring the Website Properties of my app thusly:
In the PageRedirect method essentially works like this:
That last line of code is in a try..catch construct and an exception is occurring every time.
I'm confused as to whether I need to alter how PageRedirect creates the string to redirect to or whether I'm failing to do something correctly in Website Properties.
Hoping someone can offer some guidance.
Thank you,
Robert W.
Vancouver, BC
Technical Blog
Pocket Pollster
oned_gk
All-Star
36276 Points
7392 Posts
Re: IIS & ApplicationPath
Dec 30, 2012 08:43 AM|LINK
Suwandi - Non Graduate Programmer