That would suggest that Server.GetLastError() gave you back a null. You need to run it in debug mode and you'll have access to the original error or exception. You can put a breakpoint in the line of code where you 'GetLastError'. You can check through the call stack, you can check the local variables and you're are likely to have a better picture of what is happening. Have you checked the event log yet?