首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用GoDaddy主机的System.Security.SecurityException

使用GoDaddy主机的System.Security.SecurityException
EN

Stack Overflow用户
提问于 2011-07-13 15:29:26
回答 1查看 1.1K关注 0票数 0

net.my应用程序在localhost.Till上运行正常昨天我的应用程序在godaddy.But上运行良好我做了一些代码更改(在那里我使用了视图状态),然后现在将其上传到godaddy.But如果我登录到索引页面,一切都像earlier.But一样工作如果我单击单选按钮(我已经更改了它的代码),它将给出System.Security.SecurityException error.The错误如下。我怀疑是否使用视图状态属性导致了这个错误。

代码语言:javascript
复制
Exception Details: System.Security.SecurityException: Request 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 failed.]
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284
   System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69
   System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150
   System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30
   System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40
   System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123
   System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, Resolver accessContext) +41
EN

回答 1

Stack Overflow用户

发布于 2011-07-13 15:36:26

当web场中的一台计算机呈现一个页面,然后将其回发到web场中的另一台计算机时,是否会出现这种错误?如果是这样的话,您需要在场中(通常在machine.config中)的每个服务器上的配置文件中有一个公共的机器密钥。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6675501

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档