I'm facing a really weird scenario here with my local IIS. I have hosted multiple sites in the default website in my local IIS. One of them has the login page. From the login page, I'm redirecting the user to another page that is located in another site (which is also hosted in the same IIS inside default website virtual directory).
Now in the submit button click event of my login page, after authenticating the user, I have written a "Response.Redirect(redirect_url)
". the redirect_url
is being formed dynamically and given as a parameter to the Redirect
While debugging, the final redirect_url
that is being sent as parameter to Redirect
But after I try to go to the next step, I'm suddenly getting a HTTP 404 error saying that the resource doesn't exist and I have observed that Requested URL
shown in the error page is different that what was dynamically sent to the Response.Redirect(...)
In the error page, the requested url
shows the value as
whereas my actual requested url
formed in the code is:
I'm just unable to understand why the requested url is getting changed automatically.! Also, I observe that "localhost" is being appended to the requested URL again which is not what is supposed to happen.
Please visit THIS link
] to understand this question more clearly. I have added screen shot of the error page and also my code snippets.
Thanks a lot.!