cpuer 发表于 2008-6-4 15:30:52

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,而且不客户不能修改而有的程序需要到全部信任
你可以在web.config里面把这个注释掉或删掉

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

也就是说没有解决的方法..除非和GODADDY商量让他开放权限..但希望不大
页: [1]
查看完整版本: Godaddy"Required permissions cannot be acquired"问题