Have you actually tried to run your application in debug mode? It will pinpoint exactly where the error is. If Server.GetLastError() returned null it suggest no error was detected or something is interefering with the way the error is handled or reported. If you would run your application in debug mode you will be able to find out exactly where the error is taking place and how it is being handled.