As the error
explains, add the following section to the web.config file
on the right place:
In order to get this working, the folder containing the web.config file should be marked in IIS as an application
(via inetmgr, properties of the folder, "Create Application" button). When the custom
errors are disabled, you'll get detailed information about the error that occurred
(information about the exception itself).