If you get the 404: Page not found error or a similar error every time you request some ASPX page on your server and this is the first ASP.NET application installed and running on your server, it may be caused by configuration of Web Services Extensions on Windows Server 2003.
Go to Control Panel -> Administrative tools -> Internet Information Services (IIS) Manager, click Web Services Extensions and make sure that ASP.NET 2.0 (or higher depending on the version you use) is Allowed (IIS 6 may display the ASP.NET version as 2.0.50727 even if you have a higher one installed and registered) as shown in the following screenshot: