473,405 Members | 2,415 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,405 software developers and data experts.

How to control access the assemblies?

RA
Hi

I have a csharp assemblies that communicates between themselves. They are
not installed in the GAC. How can I limit access between the assemblies to
be only for those assemblies and not some other unknown assembly?

Thanks,
Ronen
Nov 15 '05 #1
3 1004
Add a link demand to your classes that requires a specific public key for
assemblies that link to your class. Relace PublicKey with the public key
that you're requiring.
[StrongNameIdentityPermission(SecurityAction.LinkDe mand, PublicKey = "...")]
public class MeMeOnlyMe
{
}

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com

"RA" <ro****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi

I have a csharp assemblies that communicates between themselves. They are
not installed in the GAC. How can I limit access between the assemblies to
be only for those assemblies and not some other unknown assembly?

Thanks,
Ronen

Nov 15 '05 #2
The only problem with adding a public key and using this method is that
anybody can use that public key and can extract it from you assembly.
Normally if you want to do something like this only one assembly is
required, because two assemblies that can only communicate with each other
might as well be one assembly.

But you can always create a custom authentication scheme between the same
assemblies or set up a secure connection using sockets. Or do many things.
If you could post more about what you are trying to accomplish we might be
able to help you more.
"Mickey Williams" <my first name at servergeek.com> wrote in message
news:u#**************@TK2MSFTNGP11.phx.gbl...
Add a link demand to your classes that requires a specific public key for
assemblies that link to your class. Relace PublicKey with the public key
that you're requiring.
[StrongNameIdentityPermission(SecurityAction.LinkDe mand, PublicKey = "...")] public class MeMeOnlyMe
{
}

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com

"RA" <ro****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi

I have a csharp assemblies that communicates between themselves. They are not installed in the GAC. How can I limit access between the assemblies to be only for those assemblies and not some other unknown assembly?

Thanks,
Ronen


Nov 15 '05 #3
"Nick" <ne**@zigamorph.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
The only problem with adding a public key and using this method is that
anybody can use that public key and can extract it from you assembly.
Huh? Sure anybody can extract the public key, but they can only sign an
assembly with it if they also have the private portion - and presumably
you've kept *that* private.
Normally if you want to do something like this only one assembly is
required, because two assemblies that can only communicate with each other
might as well be one assembly.


Assembly factoring is orthogonal to the identity of the person(s) creating
the assembly. My current app has 5 developers and 20+ assemblies.

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joerg Krause | last post by:
Hi folks, the problem was discussed frequently here but I guess I have some other weird behavior. Have been trying out all suggestions with no avail. 1) I have a usercontrol, deriven from...
6
by: F-13 | last post by:
I'm working on a BOM in Access 200 from an example downloaded from from the web. The sample database contains three tables, Assemblies (the list of items needed to assemble any assembly),...
2
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class...
2
by: Theodoros.Savvides | last post by:
Hi All, We are developing an application and we have a problem for which I cannot find any information anywhere. The application consists of a windows user control and an ASP.NET application...
11
by: John Boghossian | last post by:
I know this isnīt spot on for this group, but the problem relates to an asp.net project i am working on. I am trying to develop an windows forms control to be used in IE in an intranet solution....
5
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
2
by: john | last post by:
Maybe I haven't had that "a-ha" moment yet, but I think the new approach to web projects is a step in the wrong direction. My main beef is that control over the assembly generation process has...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.