在GoDaddy的另一个安全异常登录尝试后 [英] Another Security Exception on GoDaddy after Login attempt

查看:513
本文介绍了在GoDaddy的另一个安全异常登录尝试后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

主持人:GoDaddy的共享主机

信任级别:中

会出现以下情况后,我提出一个有效的用户名/密码。该数据库具有读/写权限,当我删除更新如预期的那样数据库工作。管理员页面上的登录要求

任何人都有这个问题或知道问题是什么?
有人吗?

 在'/'应用程序的服务器错误。
安全异常
说明:应用程序试图执行不是由安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系或更改配置文件中的应用程序的信任级别。异常详细信息:System.Security.SecurityException:请求类型的权限'System.Security.Permissions.FileIOPermission,mscorlib程序,版本= 2.0.0.0,文化=中性公钥= b77a5c561934e089'失败。源错误:当前Web请求的执行过程中生成了未处理的异常。有关异常的来源和位置信息可以使用异常堆栈跟踪下面确定。堆栈跟踪:[SecurityException异常:请求类型的权限'System.Security.Permissions.FileIOPermission,mscorlib程序,版本= 2.0.0.0,文化=中性公钥= b77a5c561934e089'失败。]
   System.Security codeAccessSecurityEngine.Check(对象的需求,StackCrawlMark&安培; stackMark,布尔isPermSet)+0
   System.Security。codeAccessPermission.Demand()+59
   System.IO.FileStream.Init(字符串路径,模式的FileMode,FileAccess的访问,的Int32权利,布尔useRights,文件共享份额,缓冲区大小的Int32,FileOptions选项,SECURITY_ATTRIBUTES secAttrs,字符串MSGPATH,布尔bFromProxy)+684
   System.IO.FileStream..ctor(字符串路径,模式的FileMode,FileAccess的访问,文件共享份额)+114
   System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(字符串streamName中)+ 80
   System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName中,布尔assertPermissions)+115
   System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName中)+7
   System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(字符串streamName中)+10
   System.Configuration.UpdateConfigHost.OpenStreamForRead(字符串streamName中)+42
   System.Configuration.BaseConfigurationRecord.InitConfigFromFile()437
版本信息:Microsoft .NET Framework版本:2.0.50727.1433; ASP.NET版本:2.0.50727.1433


解决方案

如果您使用的是可能要检查,看看是否组件执行某些类型的安全行动的任何第三方组件。一年多前我遇到了与GoDaddy和亚音速ORM的问题,它有一个问题,code被请求的安全水平的特定线。我破解打开code反射器,接过一看,完成验证。

这可能是一个问题。如果组件的的给你造成的痛苦尝试下载code和去除可疑code,重新编译和运行。这正是我所要做的瓦特/亚音速code一两年回来。

Host: GoDaddy Shared Hosting

Trust Level: Medium

The following happens after I submit a valid user/pass. The database has read/write permissions and when I remove the login requirement on an admin page that updates the database work as expected.

Has anyone else had this issue or know what the problem is? Anyone?

Server Error in '/' Application.
Security Exception
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.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

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.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +59
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +684
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
   System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) +80
   System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions) +115
   System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) +7
   System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName) +10
   System.Configuration.UpdateConfigHost.OpenStreamForRead(String streamName) +42
   System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +437


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

解决方案

If you're using any third party components you might want to check to see if the components are performing some type of security action. A year or so ago I ran into an issue with GoDaddy and the SubSonic ORM, it had a problem with a particular line of code that was requesting a level of security. I cracked open the code in reflector, took a look , verified it.

This can be a problem. If the component is causing you the pain try downloading the code and removing the suspect code, recompiling and run with that. That is exactly what I had to do w/ the SubSonic code a year or two back.

这篇关于在GoDaddy的另一个安全异常登录尝试后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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