On my web application I have a response redirect call that resolves different on the server than it does on my localhost, here is the code:
Response.Redirect("~/store/CheckingOut.aspx?s=" + lblShipping.Text.Replace("$", ""), true);
on my local computer it resolves as:
http://localhost:53323/store/Checkout.aspx?s=2.12 [which works just as it should]
but on the server it resolves as:
there are two issues here:
1. it adds an extra /store/ sub-folder to the url, I don't understand why
2. it encodes the later part of the URL which is causing a 404 page not found error, due to the fact that it has a double sub folder [/store/store] and that it encodes the "?" which also causes a 404 error page.
Can someone please help me with this issue?
View Complete Post