Although VS.NET is a far superior tool for debugging your ASP.NET applications, there still are some powerful tools built into ASP.NET that you can utilize even when using a tool like Notepad.
This tutorial will give you an overview on how custom error handling is done. It will also provide you with some code which you can use to create your own custom error pages for your web applications.
The TraceContext Class adds the Trace Object to the ASP Intrinsic Objects, along with Response, Request, Server etc. The TraceContext is a member of the System.Web namespace.
In this article the author will show you how and where to override the 4 MB upload size limit on a machine, application, site, and subdirectory using the machine.config and web.config configuration files.