If you are trying to create your own web server that serves ASP.NET code.
You may get some tips from the open source Cassini Web Server which serves
ASP.NET code: http://www.asp.net/Default.aspx?tabindex=6&tabid=41
If you are doing this on a linux box, you may want to look at the mono
project which supports ASP.NET w/o a registry: http://www.go-mono.com