The only way it works is I use context.Response.Redirect( "/get.aspx?page=home" , False ) and put everything under root directory. In the IDE I also configure the application to run with the IIS web server, it creates a virtual directory automatically, and it works with context.Response.Redirect...