Remove the offending section from the Web.config file in the virtual directory (whatever it is, the problem section can't be identified from the negate information in the question).
Alternatively, you haven't correctly created the virtual directory as an application in IIS.