Archives
-
Disposable Impersonation
Impersonating a user in .NET isn't quite as simple as it could be. It's really easy if you you already have a WindowsIdentity or WindowsPrincipal in hand, but to get a handle on an arbitrary user you … more
-
COM Add-Ins : Multiple Madness!
[Don't you hate it when IE throws your long post to the trash? We need a smart client for updates!] COM AddIns for Office are a nice feature. A rather easy way to add some buttons and functionality … more
-
Office 2003's disappearing-reappearing PIAs.
Just in case someone else is running into this problem: If you're trying to install Office 2003 Professional and want to make sure you install the PIAs as well, you go to the setup components list … more
-
Ghost Files
For some obscure reason, Windows Sharepoint Services allows me to fetch a non-existent file. Consider this code:SPSite site = new SPSite(site_url);SPFile file = site.RootWeb.GetFile(file_url); This … more
-
Who Am I?
As we probably know, the most popular activity involving the Active Directory for the developers amongst us is to check for authorization. We get a username from the context/environment/browser, and … more