首页 新闻 赞助 找找看

发布网站时报错,在本地服务器发布正常,但上传到网上虚拟空间时就会报错……

0
悬赏园豆:20 [待解决问题]
asp.net 2.0框架 其他页面没错,访问有使用到CuteEditor控件的页面如下错误,在网上没找到办法解决,求帮助…… 
“/”应用程序中的服务器错误。
安全性异常
说明: 应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系,或在配置文件中更改该应用程序的信任级别。

异常详细信息: System.Security.SecurityException: 请求失败。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:

[SecurityException: 请求失败。]
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.CheckSetDemandWithModification(PermissionSet pset, PermissionSet& alteredDemandSet, RuntimeMethodHandle rmh) +148
System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +18
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) +54

版本信息: Microsoft .NET Framework 版本:2.0.50727.3649; ASP.NET 版本:2.0.50727.3634
在线等!!!
 
提问
zzfuping的主页 zzfuping | 初学一级 | 园豆:182
提问于:2013-08-01 15:57
< >
分享
所有回答(2)
1
libaoheng | 园豆:1433 (小虾三级) | 2013-08-01 16:26

这个方法是直接配置服务器吧,现在网站发布在虚拟空间上的,我没办法去配置服务器……

支持(0) 反对(0) zzfuping | 园豆:182 (初学一级) | 2013-08-08 15:54
0

虚拟空间可能进行了某些权限限制

dudu | 园豆:31075 (高人七级) | 2013-08-01 16:58

原因大概清楚了,但找到的解决方法基本是说修改服务器的配置,现在网站是放在虚拟空间上的,我没办法更改配置得啊,让客服修改吗?

支持(0) 反对(0) zzfuping | 园豆:182 (初学一级) | 2013-08-08 15:53

@zzfuping: 如果可能的话,建议换云主机,这样自己可以直接控制服务器

支持(0) 反对(0) dudu | 园豆:31075 (高人七级) | 2013-08-08 16:07
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册