在服务器上获取安全异常,但在localhost上运行.. [已解决] [英] Getting Security Exception on server but runs on localhost ..[ solved]

查看:216
本文介绍了在服务器上获取安全异常,但在localhost上运行.. [已解决]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说明:应用程序尝试执行安全策略不允许的操作。要授予此应用程序所需的权限,请执行
在执行当前Web请求期间生成未处理的异常。有关异常的来源和位置的信息可以使用下面的异常堆栈跟踪来识别。

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

推荐答案


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


您可以要求供应商更改您的$ b的安全级别$ b主机。

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>

请参阅参考这里

这篇关于在服务器上获取安全异常,但在localhost上运行.. [已解决]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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