Is there a way to nix that HTML? Or at least get it to output the proper theme instead of "AbleCommerce"? I have a custom public theme, but am still using AbleCommerce for the Admin area.
I built a design for the 404 error page on my site and it works fine and loads the proper HTML/CSS from my theme*:
http://www.drugtestcentral.com/Errors/PageNotFound.aspx
I'm pretty sure this is what I did:
1. Make a backup of the /Errors/ directory
2. Duplicate (copy & paste) the webpage.aspx file in the site root
3. Rename it PageNotFound.aspx
4. Place it in the Errors folder and overwrite the default PageNotFound.aspx.
5.
I'm not sure if you will need to add anything back in the code behind in order to log errors
The PageNotFound.aspx page should act like other pages - meaning if you are logged in as admin, you should have the Drop Down for view/edit. I created a 404 content html file and put some controls on there for the search box, everything else is my normal header/nav/footer etc.
It makes sense to build a custom 404 page because there isn't an application error, your AbleCommerce controls should still work and you can place things like the search control on there to help people out.
Dappy
* There's an error currently on my site where if there is a query string on the URL the error page doesn't load. IIS serves the default IIS 404 page. This IIS issue is being resolved for my store. Query strings work perfectly on my testing server and even populate the search box.