Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

.NET 4.0 page refreshes when it should cause a postback when running through IIS 7.5

$
0
0

I have a website configured in IIS 7.5 for my .net 4.0 web app. Its app pool user is configured to use .net 4 and integrated managed pipeline mode. It is using windows authentication and all other authentication methods are disabled. I'm running windows 7 ultimate. All authentication modules are installed. I can browse to the site and it correctly authenticates me and displays the default.aspx page.

The problem is, when i do anything that causes a postback, it doesn't do a postback -- it just refreshes the page. For example, i have a drop down list that does an auto post back on selected index changed. when i select something in that DDL, it just refreshes the page. I can attach a debugger to the ie browser, and i hit the break point in the page load event. Page.IsPostback is false. If I run fiddler, i see the request results in a 200 and behaves as if i just refreshed the page.

However, if i launch the site through VS 2010 which bypasses IIS and uses the ASP.NET Development Server (url is http://localhost:3911/Default.aspx), everything works as expected. The web control actually posts back (page.ispostback is true when i'm debugging).

I've never seen anything like this.. anyone know what could cause this? I'm not sure what it is, but i get the sense that I have something misconfigured in IIS.

Here are some IIS logs. the first GET is a 401 which is the first request which would have tried anonymous credentials which are disabled.. the 2nd GET would have been when it sent windows auth credentials. The 304 is a css file - that's expected. then the next two POSTS are when i caused what should have been a post back. They resulted in the page just refreshing. Again, everything works as expected when running through visual studio.. This only happens through IIS.

2011-03-09 22:00:30 10.2.4.105 GET / - 80 - 10.2.4.105 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E;+Media+Center+PC+6.0;+InfoPath.3) 401 1 2148074254 2271
2011-03-09 22:00:38 10.2.4.105 GET / - 80 [MyDomain]\[MyUserName] 10.2.4.105 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E;+Media+Center+PC+6.0;+InfoPath.3) 200 0 0 124
2011-03-09 22:00:38 10.2.4.105 GET /css/main.css - 80 [MyDomain]\[MyUserName] 10.2.4.105 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E;+Media+Center+PC+6.0;+InfoPath.3) 304 0 0 15
2011-03-09 22:00:54 10.2.4.105 POST / - 80 [MyDomain]\[MyUserName] 10.2.4.105 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E;+Media+Center+PC+6.0;+InfoPath.3) 200 0 0 15
2011-03-09 22:00:58 10.2.4.105 POST / - 80 [MyDomain]\[MyUserName] 10.2.4.105 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E;+Media+Center+PC+6.0;+InfoPath.3) 200 0 0 0


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>