When using IIS7 and the new rewriter module postback by default uses the last part of the script_name which will fail with a 404 error
The solution is to change the page_load subroutine and add the line form1.Action = Request.RawUrl where form1 is the name of the main form