302 Moved Temporarily

I am using Yii on IIS and this has been working well until today. I uploaded a new version of a couple of files to:

C:\inetpub\wwwroot\myapp and all of a sudden I keep getting 302 Moved temporarily when trying to visit my site. I restored to the previous files, but am still getting the same error.

I tried accessing my site both through the domain name and with the direct IP and am still getting the same error. Cleared the cache in the browser and everything too.

I restarted the web server to see if it would understand that the file is actually there, but still no luck.

What could be wrong with this?

The server returns a 302 Moved temporarily message, but in Firefox it says:

"Firefox has detected that the server is redirecting the request for this place in a way which makes it impossible to complete."

Did anyone run into this before?

After deploying a new version, I had deleted all contents in my wwwroot and upon copying the new ones in, I had obviously forgotten to give IUSR write permissions to the runtime and assets folders. When doing that everything worked again.

Hope that this helps someone out there.