For your second problem. you can use custom error handling a step further by associating specific errors with specific error pages. The customErrors section can contain error elements that associate particular errors with error pages.
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="apperror.aspx"/>
<error statusCode="404" redirect="404.aspx" />
</configuration>