在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的解决办法
https://blog.csdn.net/farmwang/article/details/48494821
在ASP.NET程序中,我们是可以在各个目录放置不同的web.config文件的,但有时在非根目录先放置的web.config文件会导致这样的错误提示:
"在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。"
"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. "
                    
                
                
            
        
浙公网安备 33010602011771号