Troubleshooting: "Section registered as allowDefinition='MachineToApplication' beyond application level" error when trying to open the asmx in a web page This error occurs if the API is running in a virtual directory instead of an application. Convert the virtual directory to an application in IIS. It could also occur if there are multiple web.config files. Back to Top Tags: Have more questions? Submit a request 0 Comments Please sign in to leave a comment.