Aug
21
use a section registered as allowDefinition='MachineToApplication' 解决办法
调用一个Aspx文件,几天的安装测试都没有成功。原以为是FW框架版本问题,删除又重装仍然没解决问题。
突然间,想到了用FireFox来调用,结果在Firebug的HTML中找到了错误信息:
Parser Error Message: 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.
有了以上的报错信息,解决就变得容易多了。
Ajax处于同级目录的文件夹就好几个Web.config文件,将此下级目录的Web.config文件删除即可。
突然间,想到了用FireFox来调用,结果在Firebug的HTML中找到了错误信息:
Parser Error Message: 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.
有了以上的报错信息,解决就变得容易多了。
Ajax处于同级目录的文件夹就好几个Web.config文件,将此下级目录的Web.config文件删除即可。
作者:@Everyday NetLog
地址:http://blog.zhoz.com/read.php?633
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!