Solved

StrongNameIdentityPermission can't get it working

Posted on 2012-03-12
2
235 Views
Last Modified: 2012-04-03
Hi,

As part of the microsoft exam i'm just looking into this. So, I created an assembly (windows forms) and in the debug folder used the command prompt to put a .snk file. Then I looked at the public key using sn -k myassembly1.exe.

I went into my second assembly and put decorated the main() function with the code

   <StrongNameIdentityPermission(SecurityAction.Demand, PublicKey:="1fd86b19d3...............")> _

Open in new window


Then I used 'Diagnostics.Process.Start("E:\My Documents\assembly2\bin\Debug\assembly2.exe") to start the second assembly which ran fine. Then I changed the public key so that it was incorrect and should throw and exception but it still ran fine.

Then, not knowing what to do, i changed the security zone in each of the projects to 'internet' just in case it will always run because of full trust or something. Second assembly still ran.

What do I need to do here?

Thanks, Aiden
0
Comment
Question by:AidenA
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37717467
0
 

Author Comment

by:AidenA
ID: 37781164
sorry must have missed this one... exam is tomorrow so don't have time to look at this, but will take a look on mon... thanks for input though
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question