web.config allowDefinition=MachineToApplication error

前端 未结 9 1297
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 01:41

Under the root directory I have the following structure

..
..
..
web.config
Report Folder
- Login.aspx
- Web.config
  |
  |-> ViewReport
       |       
          


        
9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 02:05

    The contents of the web.config in the subdirectory should be placede in the root directory. The configuration in the subdirectory is making IIS treat the subdirectory as the application root but it is not the application root. This is why you get the error allowDefinition='MachineToApplication'.

提交回复
热议问题