G
Greg Stangler
My problem:
I am attempting to create a strong named .NET library assembly which needs
FullTrust permissions when loaded from the Internet zone and can be embedded
(via the <object> tag ) within an HTML browser page.
e.g.
…
<object id="checkStrongNameAccess" height={controlHeight} width={controlWidth
classid="http:MyFullTrustAssembly.exe#MyUserControlNameSpace.MyUserControlClass" VIEWASTEXT>
</object>
…
Note: I’ve tried the ‘MyFullTrustAssembly’ assemblies as both exe, and dll.
The problem is when this assembly is given a strong name, and a code group
with the same strong name has been created via the caspol utility, it no
longer activates when the html page is activated. However, when the same
strong named assembly is accessed as an application (via an <HREF… .exe>),
the assembly runs with full trust, but now is no longer embedded.
I need this assembly to function within the browser so that it exits when
the browser exits.
I have also tried adding the assembly individually, and not as a code group,
with the same results.
I can make this work, if I set the ‘Trusted Sites’ zone to FullTrust
permissions (via caspol), and then add the necessary internet site to the IE
Browsers list of trusted sites. In this configuration, the assembly is now
allowed FullTrust as an embedded (<object…/>) component.
I do not want to force customers to add a web site to their trusted sites
list since this creates a security hole.
I do not want to modify the clients IE configuration in any way if at all
possible.
I want to be able to apply a strong name to my internet delivered assemblies
and load from the internet zone either via a strong named code group, or via
individual assembly groups.
My question(s):
Is the configuration I am attempting outside of security policy bounds
supported by Microsoft ? It shouldn't be, since setting trust at the site
level does work.
If it is not outside of security policy limits, how do I configure the local
CAS policies (via caspol) on a strong named ‘FullTrust’ assembly, so that the
assembly can be used as an embedded object within html, and still have
unlimited access the all of the clients local resources?
Cordially
Greg Stangler
I am attempting to create a strong named .NET library assembly which needs
FullTrust permissions when loaded from the Internet zone and can be embedded
(via the <object> tag ) within an HTML browser page.
e.g.
…
<object id="checkStrongNameAccess" height={controlHeight} width={controlWidth
classid="http:MyFullTrustAssembly.exe#MyUserControlNameSpace.MyUserControlClass" VIEWASTEXT>
</object>
…
Note: I’ve tried the ‘MyFullTrustAssembly’ assemblies as both exe, and dll.
The problem is when this assembly is given a strong name, and a code group
with the same strong name has been created via the caspol utility, it no
longer activates when the html page is activated. However, when the same
strong named assembly is accessed as an application (via an <HREF… .exe>),
the assembly runs with full trust, but now is no longer embedded.
I need this assembly to function within the browser so that it exits when
the browser exits.
I have also tried adding the assembly individually, and not as a code group,
with the same results.
I can make this work, if I set the ‘Trusted Sites’ zone to FullTrust
permissions (via caspol), and then add the necessary internet site to the IE
Browsers list of trusted sites. In this configuration, the assembly is now
allowed FullTrust as an embedded (<object…/>) component.
I do not want to force customers to add a web site to their trusted sites
list since this creates a security hole.
I do not want to modify the clients IE configuration in any way if at all
possible.
I want to be able to apply a strong name to my internet delivered assemblies
and load from the internet zone either via a strong named code group, or via
individual assembly groups.
My question(s):
Is the configuration I am attempting outside of security policy bounds
supported by Microsoft ? It shouldn't be, since setting trust at the site
level does work.
If it is not outside of security policy limits, how do I configure the local
CAS policies (via caspol) on a strong named ‘FullTrust’ assembly, so that the
assembly can be used as an embedded object within html, and still have
unlimited access the all of the clients local resources?
Cordially
Greg Stangler