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,

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top