Solved

StrongNameIdentityPermission can't get it working

Posted on 2012-03-12
2
231 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

806 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