You didn't provide any details of OS or what version of IIS.
The sub folder has to be configured as an application as described in the error, it can't just be a normal folder.
If the folder is configured as an application, you can still have conflicts because of the presence of another Web.config file in the root of the web site, but these issues can usually be mitigated.
Hope it helps,
Joe