Question

I created virtual directory and mapped to application in IIS 7.5 Windows 7.

Then am trying to build the application, am getting this error message.

"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. "

What shall I do?

Thanks,

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top