Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

  • Lookup Hijinx

    Tags: .NET, SharePoint

    Here's something that mired me down for several hours, so may it be Googled and seen and used by Sharepoint developers:   We're developing a solution right now based on SPS and WSS sites, under … more

  • Programmatically creating an IIS Application

    Tags: .NET

    Using System.DirectoryServices to manage IIS servers and directories is a long-established practice (or is it? Should I elaborate on that? Write a short article?), but I ran into a problem today when … more

  • SQL Server Woes.

    Tags: Miscellaneous Debris

    I am not a SQL Server Guru, I admit. Far from it, actually. But still, this shouldn't be this hard. I was cheerfully punching away Sharepoint code on my Win2003 machine, when suddenly the power died. … more

  • The Joy of VSTO.

    Tags: .NET, Office

    At last, I have a glowingly positive, happily cheerful and satisfyingly pleased entry instead of my usual rant. I installed the Whidbey Beta 1 build yesterday, and immediately started checking out … more

  • The API Maze

    Tags: .NET

    A reminder to those lost: The SystemInformation class, containing many useful tidbits of information like the running computer name, number of monitors and whether we're on a network, resides in … more

  • Disposable Impersonation

    Tags: .NET

    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!

    Tags: Office

    [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.

    Tags: .NET, Office

    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

    Tags: .NET, SharePoint

    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