Troubleshooting web server continuous load issue

asp.net-mvciis-7.5web-hostingwindows-server-2008-r2

I am a beginner at managing a web server. And I am trying to learn how to troubleshoot an issue in Windows Server 2008 R2 running IIS 7.5 with a .NET 4.0 MVC website.

A website I manage has been running perfectly on a GoDaddy shared hosting plan for months. The last code update to the website was about 6 weeks ago. Several days ago the website stopped working from one minute to the next. Literally, it was more like one second to the next. One of the website admin's loaded a page, clicked a link and the next page never loaded. It has been down ever since.

I spent approx. 5 hours on the phone with 4 different GoDaddy technicians. Each time they determined that it was something in the website programming. (There are 2 of us that have access to the FTP of the site. We were both on our way to work when it stopped working.)

To test it, I published the site to our in-house dev server and it worked. I then re-published to the GoDaddy shared hosting and it still did not work.

The primary issue is that the site loads and loads and never comes up.

I thought maybe I would try another host, so I have spun up a Windows VM server on Rackspace (Win 2K8 R2), installed IIS 7.5, and have a basic site up and going. If I load a basic index.html file into the folder, I can see the "Hello world" message both locally on the web server and publicly from my office.

However, as soon as I load the ASP.NET content into the folder, I get the continuous load issue again.

As I said before, on the in-house dev server (which is also Win 2K8 R2 w/ IIS 7.5) the website works fine. For the moment, I have redirected the primary domain to my office IP, created some firewall rules to forward the packets, and am successfully hosting the website from the dev server. But this is not a long term solution.

I have spent hours in the last few days looking for solutions online, and have tried a number of things. But I have not had to troubleshoot a web hosting issue like this where I do not get any obvious error messages. I am looking for ways to troubleshoot this issue in IIS, or find error messages or logs, or something that could point me to the issue. But my lack of knowledge in managing a web server is getting in the way.

Thank you!

Best Answer

I finally solved this last week.

There is a configuration file that is apart of our web application that needs read/write permissions for IIS. On our shared hosting account at GoDaddy, the permissions had been removed for some unknown reason. And when we loaded the application onto the test server, I basically just forgot that we had to reset those permissions on the new server. On our in-house dev server, the permissions had been configured way back at the beginning of the project.

On the test server we spun up at Rackspace, I added "Full Control" for the "IIS_IUSRS" to the parent directory where the file resides. On the GoDaddy shared hosting account, I went into the File Manager and set the permissions to web read/write on the directory.

The coding issue was that since the file is being accessed by a library that is used by the web application, the error was not being properly handled. If too many errors happen in a row, IIS can enter that continuous load state under certain conditions.

I stripped the site down to bare-bones and started adding dependencies back one at a time. Then when the error occurred, it wasn't so deep in the system, so I started actually getting helpful event logs. It's like the problem was so deep that it created an entirely unstable application and even the errors weren't being properly reported.