web.config allowDefinition=MachineToApplication error

前端 未结 9 1299
没有蜡笔的小新
没有蜡笔的小新 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:20

    This error seems to occur if you try to open an asp.net WEBSITE and run it while it was originally encapsulated by a SOLUTION. Do this: Close the website, find the related solution (.sln-file) further up in the file system and open this in stead. Inside the solution you will now be able to use your website without getting this error.

    It would be nice if Microsoft could guide people in the right direction when they get lost in asp.net like this. The present error message about allowDefinition=MachineToApplication is not understandable for normal humans like me.

提交回复
热议问题