473,395 Members | 1,418 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1173

<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ted | last post by:
What are the negatives to strongly naming assemblies? Why wouldn't we want to strongly name all assemblies that we ship as part of our products? Thanks Ted
10
by: Tony Jones | last post by:
Can anyone think of a reason why a 3rd party vendor writing .NET components would NOT strong name their assemblies? What harm does adding a strong-name to assembly present - I would think none...
1
by: Jason | last post by:
I've been experiementing with Assembly.Load..CreateInstance and strong naming the assemblies. This has given me a few questions, 1. Does the version number matter? I've found that its the...
4
by: Reinhold Schalk | last post by:
Hello, somewhere i've read that using strong names does assure two things: 1. Assure that the content of the assembly is not modified (that's ok in my opinion) 2. Assure that the assembly is...
3
by: Mark Keogh | last post by:
Hi, Why is everything some confusng when MS are involved ;-) Anyway, I have my excel export routines working fine, now when I try to build them into my assembly, which has a strong name, I get...
7
by: Bruce Wood | last post by:
I still haven't gotten through the .NET Framework Security tome on my desk. Maybe the folks here can answer a burning question. I want to use strong naming at our organization as a security...
0
by: John Liu | last post by:
Recently I had to do some really nasty work (I consider any IL work nasty) to get a set of (not strong named) 3rd party assemblies to compile with our solution (which is strong named). ...
1
by: Tom | last post by:
My unsigned DLL works in my project that references it as long as I set Copy Local = true. Now I have signed the DLL with the sn.exe generated keys but have not yet moved the DLL into the GAC. ...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.