asp.net - 尝试登录后 GoDaddy 出现另一个安全异常

标签 asp.net security exception

主机:GoDaddy 共享主机

信任级别:中

在我提交有效的用户/通行证后,会发生以下情况。数据库具有读/写权限,当我删除管理页面上的登录要求时,会按预期更新数据库工作。

还有其他人遇到过这个问题或者知道问题出在哪里吗? 有人吗?

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 

最佳答案

http://www.codeproject.com/Questions/586223/SecurityplusExceptionpluscomingplusinplusaplusrunn

解决方案4 System.Security.SecurityException:请求“System.Net.SocketPermission,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089”类型的权限失败

上述错误的以下解决方案

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

适用于我的 en godady 托管

关于asp.net - 尝试登录后 GoDaddy 出现另一个安全异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/304616/

相关文章:

java - AWS IoT SDK - 构建 AWSIotData 和 AWSIotClient 时出现异常

c# - 验证来自 Gmail 上下文小工具的签名请求

c# - OrchestrationRuntimeStatus 枚举序列化或反序列化

javascript - 如何保护来自多个域的 ajax 请求?

java - jar 安全

c# - System.Reflection.TargetInvocationException;需要帮助理解

c# - ASP.NET 应用程序 - 关于如何加速它的想法

javascript - 电话号码文本框问题

node.js - 保护 Node Redis

c++ - 可以将 gdb 设置为在任何抛出时中断吗?