Why Can’t I See My Partially Trusted ClickOnce Applications in Task Manager?

If you’re developing a partial trust ClickOnce application and are looking for its process in Task Manager or Process Explorer, you might be surprised that you can’t find it listed anywhere.  What you will see however is a process named AppLaunch.exe.  AppLaunch is a small shim tool who’s entire purpose in life is to turn around…

0

Where Does the Stack Walk Start or: Why Do Demands from Main Always Succeed?

When starting to play with CAS a lot of people come up with toy programs that simply do a Demand for some permission or another, then copy that program to various locations that will cause it to be granted different permission sets.  It’s generally a surprise when those demands pass, even though caspol confirms that…

3

Finding the Source Code for an Assembly

Sometimes, especially when working on large projects (such as, I don’t know, say … the CLR), you find yourself debugging a problem where you don’t know where a component is built from.  Depending on the problem, it might be useful to get to the sources of the assembly to help diagnose what the issue is…

2

All About RSAParameters

The RSA class exposes an ExportParameters method which allows you to get at the raw RSA key in the form of an RSAParameters structure.  What that structure contains isn’t very obvious to people not familiar with how RSA works.  With fields named P, Q, D, DP, DQ just looking at it isn’t going to help…

3

Don’t Roundtrip Ciphertext Via a String Encoding

One common mistake that people make when using managed encryption classes is that they attempt to store the result of an encryption operation in a string by using one of the Encoding classes.  That seems to make sense right?  After all, Encoding.ToString() takes a byte[] and converts it to a string which is exactly what…

37

What can an ApplicationTrust tell us about an AppDomain

In v2.0, there is a new ApplicationTrust property on the AppDomain class.  This property will be non-null in two conditions Your application is a ClickOnce application Your code is running in a simple sandbox domain In the ClickOnce case, the ApplicationTrust object will contain the permission set that was specified in the application manifest, the…

0

Comments in the blog

Eric just pointed out to me that no comments appear to be showing up in my blog recently.  I had switched on moderation for anonymous users, and for some reason the notification email stopped being sent to me.  I’ve gone through the backlog of comments and replied to them — sorry for the delay.  I…

0

Adding SignatureProperties to SignedXml

One of the optional portions of the W3C XML digital signature specification allows for a set of SignatureProperties to be assigned to a signature.  SignatureProperties allow the signer to place some metadata into the signature itself, such as the time the signature was created and the name of the person creating the signature.  Since the…

3