?
Solved

ASP.NET Response.Redirect no longer works with relative URL in Windows 7.

Posted on 2011-09-26
3
Medium Priority
?
1,101 Views
Last Modified: 2012-05-12
ASP.NET Response.Redirect no longer works with relative URL in Windows 7. I have an asp.net web 'application' (not website), that when I switch to use the 'virtual/casini' web server, the response.redirect no longer redirects to a relative url.

The response.redirect code simply resides in the click event handler in the asp.net's code behind - nothing special - and this previously worked in my dev environment when it was on WinXP.

For example: Response.Redirect("home.aspx"); will just trigger the browsers search screen (in both IE and Chrome, the only two I've tried). I get this problem in both VS2008 and VS2010. It seems to be Windows 7 related (I get this result in both Windows 7 home premium and ultimate).

Interesting, I don't have this problem if I use the actual local IIS 7 web server(on my version of Win7 Ultimate). But Casini and IIS 7.5 Express both have this wierd problem with response.redirect. Which, now that I think of it - maybe installing IIS 7.5 express caused an issue as I haven't tried it on Win7 yet without installing that.

Anyone else run into this problem? I selected 500 points because this seems to be a really obscure problem that not to many people may have come across.
0
Comment
Question by:PurdueGuy531
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:serchlop
ID: 36602233
You have to add the site URL to Secure sites in IE, this problem is related about security improvements in Internet Explorer 8 and forward. I think that with Firefox or another browser this problem is not present.
0
 

Accepted Solution

by:
PurdueGuy531 earned 0 total points
ID: 36602365
Nevermind. Turns out the way the code was written, and how it checks and processes URL's is completely different if you use the virtual and IIS express servers vs the full blown IIS for hosting. The navigating incorrectly with response.redirect was just a symptom of this. Really wierd that the relative URL's I'm getting are so different from IIS vs virtual (as in the page name not even showing up, etc).

0
 

Author Closing Comment

by:PurdueGuy531
ID: 36895908
Found the answer.
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question