我已经设置了一个在网页上运行的ActiveX控件。服务器能够将此网页提供给自己,但内部网和互联网上的其他计算机无法访问它。CASPOL,FullTrust并在IE中使用基于URL的FullTrust运行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">
我得到一个控制工作的一些类似的问题,在我们的情况下,我们不得不改变 的http:// MYSERVERNAME/APPLICATIONNAME/*到http:// MYSERVERNAME/* 另外,还要确保你有一个规则如果您使用SSL,则使用HTTPS。 因为您的FullTrust处于顶级水平,您的情况可能会出错。 – BeWarned 2009-07-07 17:19:30