Solved

StrongNameIdentityPermission can't get it working

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 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