Cookieless and IIS7 segments trigger a redirect loop

I have an ASP.NET site that uses cookieless sessions. When the initial request is sent to the site using a URL, for example:

http: // localhost / site

IE simply displays the standard message "Internet Explorer does not display a web page." Firefox is a little more useful and displays the following message:

"The redirect limit for this URL has been exceeded. The requested page could not be loaded. This may be due to blocked cookies."

I put some trace in global.asax and I get to the application launch event, but not to the session launch event.

I did not block any cookies in browsers and did not set any http redirect rules.

The site works fine with my development server and under IIS6.

If I turn off cookieless sessions, then everything will be fine in IIS7.

I can reproduce this using a simple website, that is, in Visual Studio, File> New Website, and then just set cookieless = "true" web.config.

I tested this on collectors workstation and it works, so I assume this is some kind of setup in IIS7 somewhere.

Any ideas?

+7
iis iis-7 cookieless
source share
1 answer

Well, I found a problem.

I had two ISAPI filters that both pointed to the same DLL:

% Windir% \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_filter.dll C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_filter.dll

I deleted the second one and everything was fine. I don’t know that I put a duplicate there, of course, this is not me.

+6
source share

All Articles