Last post Dec 31, 2009 08:39 AM by imran_ku07
Nov 23, 2009 04:07 PM|WaltSchmidt|LINK
I just moved to Windows 7 from XP. I have to support an ASP.NET 1.1 application, so I installed Visual Studio.NET 2003. When I opened the site in IE, I got the typical errors you're probably familiar with in the 1.1 on IIS 7.5 arena. I think I've got everything
worked out. There's just one issue that doesn't seem to work correctly.
There are several directories in the app that allow access to various users. The app uses FormsAuthentication.GetRedirectUrl to determine the URL (and check for approrpiate access rights) and then where to send the user after the successful login.
So far, so good. But when the user logs in, he's redirected to
http://localhost/webapp. Users who login at the root level of
http://localhost/webapp have no issues. Attempting to login anywhere else simply doesn't work. ReturnUrl just seems to be ignored.
Further, I change the welcome message text on the login screen based on the FormsAuthentication.GetRedirectUrl value. If FormsAuthentication.GetRedirectUrl is "/webapp" then it's:
If FormsAuthentication.GetRedirectUrl is "/webapp/admin" then it's:
"WebApp Login (Admin)"
But on Win 7 / IIS 7.5, it's always "WebApp Login." It's like FormsAuthentication.GetRedirectUrl is empty, but yet the ReturnUrl is still correct (but ignored).
Any ideas? I hope this is an IIS issue. I don't really want to mess with code that works on our production server.
Nov 23, 2009 10:46 PM|Careed|LINK
You can install IIS 7 on your Windows 7 installation so that you can avoid IIS 7.5 for now. Look here:
Nov 24, 2009 10:30 AM|WaltSchmidt|LINK
I'm not sure I follow. I had already installed IIS using the step described in that article. Are you saying I can install the 7.0 version of IIS instead of the 7.5 version? Are they even two distinct products?
Nov 26, 2009 12:15 PM|Careed|LINK
It is my understanding that you can install IIS 7.0 on Windows 7. They're not distinct products; 7.5 is an upgrade of 7.0 with additional features that are intended for Windows 7 (and I believe Windows Server 2008 R2, but I'm not sure of that). The purpose
for the option is to provide Windows 7 with IIS 7.0 for development and testing of web apps that will run on IIS 7.0 in a production environment. Additionally, I believe that there may be some issues with IIS 7.5 and ASP.NET 1.x, so it might be best to avoid
IIS 7.5 until you have upgraded to ASP.NET 2.0/3.5/4.0. (You are going to upgrade, right?)
Dec 30, 2009 10:28 AM|Rovastar|LINK
For the record
You cannot install IIS 7.0 on Windows 7 it is only for Vista and Windows server 2008
IIS is a windows compenent and with Windows 7 it comes with IIS 7.5
ASP.NET 1.1 is not supported in IIS 7.5 (Windows 7/Windows Server 2008 R2)
Yet again the "official" documentation from Microsoft on iis.net is misleading.
Is refering to IIS 7 (or more accurately IIS 7.x and includes IIS 7.0 (vista) and IIS 7.5 (windows 7) ) The installation method is the same hence teh lazy docuemnation they have failed to update.
Dec 30, 2009 10:56 PM|Careed|LINK
The installation process is using the Web Platform Installer, not directly from Windows 7. As I mentioned in another post, I have not had the opportunity to test this yet.
Regardless, Walt, you should upgrade to at least ASP.NET 2.0 anyway.
Dec 31, 2009 08:39 AM|imran_ku07|LINK
Why not you try,