.net 4

  • Impersonation with Network Credentials in C# .Net

    (Mostly) unmodified code, courtesy of Phil Harding (see references below for original post). References http://platinumdogs.wordpress.com/2008/10/30/net-c-impersonation-with-network-credentials/ Continue reading

  • aspnet_setreg in Server 2008

    The aspnet_setreg utility is very useful for storing encrypted domain credentials, connection strings and other values referenced in a web.config which should not be visible in plaintext. One such technique is when using the .Net “impersonation” mechanism. Typically, this would… Continue reading

  • C# and VB Equivalents

    VB: C#: Continue reading

  • Quick Silverlight References

    Most of the links below are relatively introductory, but they do serve as a quick refresher if it has been awhile since you have worked with Silverlight. Though not all of the links are specific to SL4, I would recommend… Continue reading

  • Quick .Net Email Reference

    I’ve done a bit of encapsulation here to abstract the concept into clearer functionality, IMO. Make sure to add “using” reference directives for System.Threading and System.Net.Mail accordingly, when necessary. Note usage of basic boolean “sync lock” style logic in place… Continue reading