Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

  • Impersonation and EFS

    Tags: .NET

    A quick reminder, after having spent too much time on it this morning: When impersonating a client context (in this case through SSPI over Remoting), not only can you not access external network … more

  • Disposable Unimpersonation

    Tags: .NET, CodeSnippets

    A while ago, I discussed the possibility of using RevertToSelf() to avoid Double Hop problems. I suggested this pattern can be wrapped inside a class implementing IDisposable to easily use it. This … more

  • Control.DefaultValue isn't.

    Tags: .NET

    Here is a common source of confusion and frustration that's been experienced by most people developing a custom control in .NET - in WinForms,WebForms, Sharepoint and whatnot. One of the designer … more

  • Recycling Application Pools in IIS 6.0

    Tags: .NET, CodeSnippets

    A quick tip for those of us fond of iisreset. Restarting IIS takes quite a while. Sometimes 15-20 seconds, when my w3wp.exe processes are particularly unruly. In many cases, though, a full … more

  • Over-Abstraction? A debate.

    Tags: .NET

    I've been having an argument with a co-worker of mine about the KeyboardHook code I recently published here. His claim - by exposing a KeyboardHook object and letting users add Filters for … more

  • By Hook or by Crook

    Tags: .NET, CodeSnippets

    While trying to implement custom shortcut keys in Outlook, I came across an old column by Dino Esposito on implementing custom Windows hooks in .NET. At first I wanted to use it as reference and … more

  • DatePicker Blues.

    Tags: .NET, Office

    I'm really surprised at how hard it is to find a good DateTimePicker control that meets all our requirements: 1) Must suppost null dates, like the Due Date datepicker in Outlook tasks.2) Must be an … more