我已经设置了一个在网页上运行的 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">