fix web.config and add a debug route