ASPX serving 404 errorhttp://forums.asp.net/t/1760798.aspx/1?ASPX+serving+404+errorTue, 21 Feb 2012 12:04:04 -050017607984792503http://forums.asp.net/p/1760798/4792503.aspx/1?ASPX+serving+404+errorASPX serving 404 error <p>I have a client that I am working on doing an IIS6 to IIS7.5 migration for. Their old web server had several websites stored in multiple locations (3 drives and a NAS) so I used the IIS6 Migration Tool to migrate the configurations over to the new server. Once all of the configurations were migrated over I moved all of the data over and centralized it onto on drive and redirected all of the sites physical storage.</p> <p>The issue I am having now is I am getting a 404 error on any aspx page. I have searched through countless threads and websites and have tried several solutions and still cannot get this to work.</p> <p>The client has 7 websites that they host and then the &quot;Default Web Site&quot; is what they use for their domain. One of the websites that they host shares a directory with their site (ex. hosted - sub.site.com, client - site.com/sub). The hosted site works just fine but their sites directory does not work even though they are the same physical location/web.config file. This seems to be only happening with .aspx pages under their directory. I have deleted and manually rebuilt their main directory and it still does the same thing. I have even gone as far as uninstalling IIS, uninstalling .net (aspnet_regiis -ur), rebooted, reinstalled iis and reinstalled .net and it still does the same thing.</p> <p>I have been making all changes on the server level to make sure all sites are configured the same to take any variables out of the question. I have even gone through and cleaned out web.config files and have &quot;Reverted to Parent&quot; on all settings to remove any variables.</p> <p>I can further clarify if anything here does not make sense but I am out of idea's on this and have already spent enough time on it and am ready to have this resolved.</p> 2012-01-19T20:21:48-05:004792520http://forums.asp.net/p/1760798/4792520.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>In IIS go to your site listings..</p> <p>select the site and on the right there should be an icon called &quot;Default Document&quot;</p> <p>double click on that and in the list of types, make sure you see one for .aspx</p> <p>If not simply click the add button on the right, enter in the name of the main page of the site..</p> <p>could be home.aspx, index.aspx, default.aspx and so on..</p> <p>see if that helps..</p> 2012-01-19T20:37:26-05:004792538http://forums.asp.net/p/1760798/4792538.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>There is already a default.aspx listed under default documents and it doesn't matter what .aspx page you open still gives the 404 error. I know it's not a permission issue because I can open html files under the same directory and if I enable directory listing I can see every file in the directory. I have also tried running the app pool user as a local admin account, the system account and the network services account and I am still getting the 404 error. I did notice to that when I tried to run it under .net v4 it would give me a 404 error on the directory listing but .net v2 shows the listing fine.</p> 2012-01-19T20:54:59-05:004792546http://forums.asp.net/p/1760798/4792546.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>What about in the same area.. there is a Handler Mappings<br> In the Path column, do you have anything for .aspx?</p> <p>if those arent the issue, there is this site that offers a few suggestions(maybe you already tried them) that may help or get you closer to fixing the issue</p> <p><a href="http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx">http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx</a></p> 2012-01-19T21:21:34-05:004792562http://forums.asp.net/p/1760798/4792562.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>The Handler Mappings have listings for .aspx but this still doesnt explain why the aspx page would load for one site and not the other even though one of the directories is shared between the two and they have the exact same config file.</p> 2012-01-19T21:54:25-05:004793877http://forums.asp.net/p/1760798/4793877.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>just curious, does each site have its own application pool assigned to it? probably has nothing to do with it, but we had similar issues once and somehow it had to do with the default.aspx missing from the default pages and the application pool..</p> <p>other than that sorry couldnt help.. hope you find a solution.</p> 2012-01-20T15:52:40-05:004797160http://forums.asp.net/p/1760798/4797160.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>I have tried this with all applications under the same app pool and under their own app pool. Some of the other pages under the &quot;Default Web Page&quot; have a default.aspx and they dont work either. It is only the sites under the &quot;Default Web Site&quot; that don't work even though some of the sites share the same folder/config.</p> 2012-01-23T16:33:57-05:004811573http://forums.asp.net/p/1760798/4811573.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p></p> <blockquote><span class="icon-blockquote"></span> <h4>jschick04</h4> <p>&nbsp;It is only the sites under the &quot;Default Web Site&quot; that don't work even though some of the sites share the same folder/config.</p> </blockquote> <p></p> <p>If you host asp.net websites in subfolder of Default Website, the subfolder must be configured as Virtual Application.</p> <p>Instead of using Default website for company website, you can try to create a new site with host binding for company-domain-website.com</p> <p>Other websites that have asp.net working are separate sites with its own domain name like company-site1.com company-site2.com ??</p> 2012-02-02T00:22:57-05:004811649http://forums.asp.net/p/1760798/4811649.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>The sites are configured as virtual apps under the &quot;default&quot; site. So under the &quot;default&quot; site we have a virtual app (site.com/va) that shows a 404 for any aspx page. Then we have another site (va.someothersite.com) that works even though the virtual app is the same location (e:\va).</p> 2012-02-02T01:34:11-05:004843079http://forums.asp.net/p/1760798/4843079.aspx/1?Re+ASPX+serving+404+errorRe: ASPX serving 404 error <p>Hi,</p> <p>Please ensure that you have typed full path with file name.</p> 2012-02-21T12:04:04-05:00