ASP.NET What causes: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application…?

后端 未结 5 913
陌清茗
陌清茗 2021-01-25 17:58

I have an ASP.NET web site. I keep getting the error below in VS 2008. The site works fine from a browser. I have made every folder using IIS manager an ASP.NET app. Why does it

5条回答
  •  遇见更好的自我
    2021-01-25 18:17

    You likely have a virtual directory set up as a real site, having a bin directory, aspnet_client and web.config.

    Either remove those and run it as a relative path, localhost\subdir\default.aspx, or create a new website in IIS to point directly at it.

提交回复
热议问题