raksmart活动促销

分享

写回答

发帖

安装一套程序,出现这样是什么意思?(已解決問題)

英文翻译专版 英文翻译专版 1699 人阅读 | 2 人回复

发表于 2010-3-16 23:03:32 | 显示全部楼层 |阅读模式

安装一套程序,出现这样是什么意思?
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.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

回答|共 2 个

yerencao

发表于 2010-3-25 10:48:05 | 显示全部楼层

说权限不够,你是不是用的windows主机?
IIS的trust level 是medium的,你的程序估计要high或是full才能运行.

yerencao

发表于 2010-3-25 10:51:22 | 显示全部楼层

System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
刚才没看仔细,可以确定你用的windows主机,而且是.net程序,用的是2.0,你唯一的选择:
换程序.改写程序为.net1.1的版本.
在1.1状态下.服务器会给你high等级的权限.
您需要登录后才可以回帖 登录 | 注册

本版积分规则