Web.config does not log the error of the page, it's used solely to well,
config settings
If the web.config file is not correctly generate you can not debug directly
from the IDE, if you run it directly from the browser it will show an error
page with the wrong formed line.
Please if this does not solve your problem, just explain it further.