ASP.NET by default show custom error page if there is any error in the script. This is for security.
For debuging your code, you may need to see the actual error. To enable ASP.NET script show the actual error, create a file with name web.config and upload it to you server with following content.