开发者

Find out what is causing problem in IIS7

开发者 https://www.devze.com 2023-03-21 15:31 出处:网络
We have a C# web application, and the latest deploy doesn\'t work on our Windows Small Business S开发者_Python百科erver 2008 (IIS7). The exact copy of that site runs fine on my Windows 7 machine (IIS7

We have a C# web application, and the latest deploy doesn't work on our Windows Small Business S开发者_Python百科erver 2008 (IIS7). The exact copy of that site runs fine on my Windows 7 machine (IIS7.5). The previous version and other builds still work on the Server 2008 R2 machine, but this itteration doesn't.

I've checked the W3SVC logs, but no requests are logged. I've checked the eventlog for errors, but no errors are logged. I also checked in fiddler, but the request just doesn't get a response as far as I can tell (Result column remains -)

When you open the url, the browser will just keep loading (no timeout).

Is there anything else I can check or enable to debug this IIS7 behaviour?

Thanks in advance,

Nick.

UPDATE

I published the application again & created a new site in IIS, and this new version works. While my the immediate problem is solved at this time, I would still like to know how to debug IIS7, see how it works & why it would keep loading infinitely.


First, I would drop a regular .html file into the sites directory. Then I would have a browser request that specific static file. This would bypass the .net engine and should be logged.

If for some reason it doesn't work and/or isn't logged then there are other things to check, let us know.

Assuming that it does serve the file and you are pointing to the correct machine then inspect your global.asax file and remove any type of error handling you might have. Also turn off the custom errors section of your web.config. Both of which could result in the server essentially spinning off into nothingness if improperly coded. If you have any type of additional threads you are spinning up on access, then see if you can turn those off or add additional logging.

Next, look in the HTTPERR logs to see if you can identify what's going on. These are located at
%SystemRoot%\system32\LogFiles\HTTPERR\httperr*.log

Info about this log file is at: http://support.microsoft.com/default.aspx?scid=kb;en-us;820729


If your app uses ADO then there is chance that depending where the build occurred on Windows 7 or not and whether SP1 is installed or not (at the time of the build) that your build is broken by some Micorsoft ADO-update contained in SP1 (see http://www.codeproject.com/Articles/225491/Your-ADO-is-broken.aspx).


If no requests are logged in the W3SVC logs then it probably means that IIS is not recieving the request at all - likely due to firewall configuration or similar.

You should diagnose why IIS is unavailable (for example by attempting to serve some static content) and then try again.


Try these:

  • re-register asp.net runtime with your IIS7
  • make sure the asp.net extension for the correct version is set to Allowed in 'ISAPI and CGI restrictions' in your IIS
0

精彩评论

暂无评论...
验证码 换一张
取 消