web.config allowDefinition=MachineToApplication error

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

    I deleted my bin and obj folder for the project and then rebuilt the solution and everything was working fine...not a technically savvy answer but it works.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-05 02:24

    I opened the web site from IIS instead of file system and it worked.

    0 讨论(0)
提交回复
热议问题