Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-09-26
3
Medium Priority
?
1,137 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Assume you have an outside contractor who comes in seasonally or once a week to do some work in your office, but you only want to give him access to the programs and files he needs and keep all other documents and programs private. Can you do this o…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

636 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