安装异常来自正在运行的asp.net网站 [英] Security Exception coming in a running asp.net website

查看:73
本文介绍了安装异常来自正在运行的asp.net网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的ASP.NET应用程序托管在godaddy服务器上。这个应用程序运行得非常好



从一年开始,但从昨天开始,当我尝试在



浏览器甚至没有出现登录页面。



描述:应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与您的系统管理员联系或在配置文件中更改应用程序的信任级别。



异常详细信息:System.Security.SecurityException:Request for类型'System.Security.Permissions.SecurityPermission,mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'的权限失败。




我没有做任何更新或没有更改任何设置。



请尽早帮助我。

解决方案

异常本身表明在配置文件中更改应用程序的信任级别。看看ASP.NET信任级别和策略文件如何解决安全例外 。此异常可能是由于服务器上的machine.config文件中缺少适当的信任级别。您可以联系管理员以获得进一步的帮助。


System.Security.SecurityException:Request for the类型'System.Net.SocketPermission,System,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'的权限失败



解决上述错误



 <   system。网络 >  
< customErrors mode = / >
< tru st level = 完整 / >
< / system.web < span class =code-keyword>>


此问题归因于第三方dll,现在已解决。

I have my ASP.NET application hosted on godaddy server. This appliation is running perfectly fine

from one year, but from yesterday following error is coming when I try to open the application in

browser not even the login page is appearing.

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.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


I didn't make any update or did not change any setting.

Please help me as early as possible.

解决方案

The exception itself states that change the application's trust level in the configuration file. Have a look at ASP.NET Trust Levels and Policy Files and How to resolve Security Exception. This exception can be due to lack of proper trust level in the machine.config file on the server.You can contact the administrator for further assistance.


System.Security.SecurityException: Request for the permission of type 'System.Net.SocketPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

following solution of above error

<system.web>
    <customErrors mode="Off"/>
    <trust level="Full" />
</system.web>


This issue was due to third party dll, which is solved now.


这篇关于安装异常来自正在运行的asp.net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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