?
Solved

StrongNameIdentityPermission can't get it working

Posted on 2012-03-12
2
Medium Priority
?
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

764 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