471,627 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Strong Naming Assemblies + permissions

I have a strong names signed assembly which contains a user control. I
wish to embed this user control in an html file that will display in a
browser. This control references and makes use of the System.IO.Ports
and System.Net.Sockets libraries, which means permissions must be
granted for this to work correctly. To do this, in Control
Panel>Administrative Tools>.NET Framework 2.0 Configuration I have
added a code group under machine for LocalIntranetZone that should
allow any libraries with the strong name key that is used in the
assembly to be executed. However, this does not work - the control does
not appear on the browser. Please bear in mind that if I add a code
group in there to grant full permissions to ALL code, then it works
correctly, as does it if the assembly is unsigned. Any ideas what could
be wrong?

Many thanks in advance for your help.

Feb 7 '06 #1
2 1112

<ad**********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
|I have a strong names signed assembly which contains a user control. I
| wish to embed this user control in an html file that will display in a
| browser. This control references and makes use of the System.IO.Ports
| and System.Net.Sockets libraries, which means permissions must be
| granted for this to work correctly. To do this, in Control
| Panel>Administrative Tools>.NET Framework 2.0 Configuration I have
| added a code group under machine for LocalIntranetZone that should
| allow any libraries with the strong name key that is used in the
| assembly to be executed. However, this does not work - the control does
| not appear on the browser. Please bear in mind that if I add a code
| group in there to grant full permissions to ALL code, then it works
| correctly, as does it if the assembly is unsigned. Any ideas what could
| be wrong?
|
| Many thanks in advance for your help.
|

"LocalIntranetZone" does not have SockePermission nor FileIoPermission. You
should take some time to read more about CAS evidence and the different
permission sets, this is not something you will learn overnight.

Willy.

Feb 7 '06 #2
I _should_ have given LocalIntranetZone FullTrust when the assembly has
this particular strong name key, by adding a new code access group.
This is what doesnt work...it does not grant permissions for all
assemblies with the strong name I give it.

Feb 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Ted | last post: by
10 posts views Thread by Tony Jones | last post: by
1 post views Thread by Jason | last post: by
7 posts views Thread by Bruce Wood | last post: by
6 posts views Thread by raylopez99 | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.