调用WebServices报错,请求“System.Web.AspNetHostingPermission
发布时间:2020-12-16 23:09:17 所属栏目:安全 来源:网络整理
导读:解决方案: 需要降低信任级别 到“Low”; 在webconfig中加上: system.web securityPolicy trustLevel name="Full" policyFile="internal"/ trustLevel name="High" policyFile="web_hightrust.config"/ trustLevel name="Medium" policyFile="web_mediumtrust
解决方案: 需要降低信任级别到“Low”; 在webconfig中加上: <system.web> <securityPolicy> <trustLevel name="Full" policyFile="internal"/> <trustLevel name="High" policyFile="web_hightrust.config"/> <trustLevel name="Medium" policyFile="web_mediumtrust.config"/> <trustLevel name="Low" policyFile="web_lowtrust.config"/> <trustLevel name="Minimal" policyFile="web_minimaltrust.config"/> </securityPolicy> <trust level="Full" originUrl=""/> </system.web> 这样就可以了 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- angularjs – 如何使用karma / jasmine模拟angul
- docker – Kubernetes无法在给定的IP上看到我的
- bootstrap fileinput +springmvc图片上传-krajee
- angularjs – 使用Jquery调用Angular函数
- AngularJs bootstrap搭载前台框架——基础页面
- scala和java中的枚举器vs迭代器
- 【软件周刊】要的就是速度,Angular 4.0.0 beta0
- bootstrap表单的其他组件
- angularjs – 在compiler_1中获取ERROR.StaticSy
- 无法向Angular TypeScript类(FormGroup)添加新方
热点阅读