Windows 2003 ASP.NET Page Gives 404 File Not Found Error
Today, one of my colleges shows me that I had the error which denies access to ASP.NET page (.aspx,.asmx,.asax) and shows 404 file not found.
I have tried 1 to 2 hour for just googling around for resolving this issue. But I could not think of keywords to search for. Then following steps resolved my problems. Thanks to GOD, GOOGLE and my MIND too 🙂
Basically first thing I did is put .txt and .asp file and test if it works for that extension. And It Worked !!!
Now next thing I did is go to the IIS log and see the entry of that request. It shows me something like
<Request data> …. 404 2 1260.
Now, From this, I googled and found out that this is 404.2 error and it is policy lockdown. Uhhh!! Found the problem.
Now, searched google about resolving this policy lockdown error. To resolve this. Goto IIS and expand the Main Server Node. Find the “Web Server Extension” directory and click on it. It shows list of extension to the right side. Please look at that amazing thing and somewhere your page is prohibited under that configuration. Please enable it and hurray!!! You are on your way.