Thank you both for your answers. Actually, break points couldn't help me because the application did well on my computer(localhost), the error occurred only when I tried to run it on the server, so I used a try-catch block, captured the exception and inserted it to my database. btw, the error was about file permissions (I had to give the aspnet and network-services accounts read,write & execute permissions)