【发布时间】:2009-06-26 18:35:49
【问题描述】:
我设置了一个在网页上运行的 activex 控件。服务器可以为自己提供这个网页,但内网和互联网上的其他机器无法访问它。
Caspol 设置如下所示:
代码组:
1. All code: FullTrust
1.1. Zone - MyComputer: FullTrust
1.1.1. StrongName - (omitted) : FullTrust
1.1.2. StrongName - 00000000000000000400000000000000: FullTrust
1.2. Zone - Intranet: FullTrust
1.2.1. All code: Same site Web
1.2.2. All code: Same directory FileIO - 'Read, PathDiscovery'
1.3. Zone - Internet: Internet
1.3.1. All code: Same site Web
1.4. Zone - Untrusted: Nothing
1.5. Zone - Trusted: Internet
1.5.1. All code: Same site Web
1.6. Url - http://MYSERVERNAME/APPLICATIONNAME/*: FullTrust
Success
我尝试访问的应用程序是组 1.6。我在这里做错了吗?
[编辑] 值得一提的是,试图从 Intranet 访问控件的机器上的 IEDebug 错误日志会显示很长的异常。其中最值得一提的是:
System.Net.WebPermission
The first permission that failed was:
<IPermission class="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
【问题讨论】:
-
我在让控件工作时遇到了一些类似的问题,在我们的例子中,我们不得不将 MYSERVERNAME/APPLICATIONNAME* 更改为 MYSERVERNAME* 如果您正在使用,请确保您有 HTTPS 规则SSL。您的情况可能会出现其他问题,因为您在顶层拥有 FullTrust。
标签: .net internet-explorer iis caspol .net-security