在服务器上引发安全异常,在本地主机上运行 [英] Throws Security Exception on server , runs on localhost

查看:98
本文介绍了在服务器上引发安全异常,在本地主机上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本地主机上运行我的项目时,它正在运行Good。但是,当我将其部署到服务器上时,出现了这种错误。
错误:
说明:应用程序尝试执行安全策略不允许的操作。要授予此应用程序所需的权限,请联系您的系统管理员或在配置文件中更改该应用程序的信任级别。

While running my project on localhost , it is working Good . But when I deployed it on my server , I am getting this type of error . Error : Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

推荐答案


这是服务器安全级别限制的原因,您需要
Web.Config 文件中修复此问题。

it's getting cause of server security level limitation, you need to fixed this in your Web.Config file.


服务供应商以更改
主机的安全级别。

you can asked to Serve Vendor to change the Security Level for your Host.



<system.web>
  <securityPolicy>
    <trustLevel name="Full/High/Medium/Low/Minimal" policyFile="internal"/>
  </securityPolicy>
</system.web>

请参阅参考资料此处

这篇关于在服务器上引发安全异常,在本地主机上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆