全球主机交流论坛

标题: Godaddy"Required permissions cannot be acquired"问题 [打印本页]

作者: cpuer    时间: 2008-6-4 15:30
标题: Godaddy"Required permissions cannot be acquired"问题
Godaddy的windows主机空间一般不允许调用第三方DLL,所以在asp.net 运行时经常出现:

Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

GODDADY设置信任级别为Medium,而且不客户不能修改  而有的程序需要到全部信任<trust level="Full"/>
你可以在web.config里面把这个注释掉或删掉<trust level="Full"/>

注:在机器上还有个machine.config,,z级别比web.config更高.
所以他在machine.config里限制了<trust level="Medium"/>,你就没办法了.
说明下,这个限制是不能引用第三方DLL文件.

也就是说没有解决的方法..除非和GODADDY商量让他开放权限..但希望不大




欢迎光临 全球主机交流论坛 (https://www.91ai.net/) Powered by Discuz! X3.4