Category Archives: Developer tools

ULSViewer tool not working on real-time logs

I use ULSViewer  a lot when debugging SharePoint issues. One of the nicest features of the tool is to view the SharePoint log in real-time (and the fact that is works for both SP2007 and SP2010).

Last time I wanted to use the tool, I found that it was not parsing the SharePoint log in real-time. I was however able to open individual log files.
As it turns out, ULSViewer is using *-????????-?????.log as a filter to parse the logs in real-time. I had some ‘older’ log files in the LOGS folder that were not formatted in the ULS format (from running powershell commands).
Removing these files from the SharePoint Logs folder got ULSViewer real-time parsing working again.

Configure hMailServer for SharePoint

Nice article from Wesley Bakker on how to use hMailServer for SharePoint:

In Short:
SharePoint cannot authenticate to an SMTP server, so you need to disable authenctiaction on the hMailServer (at least for the local computer)

  • In Settings / advanced / IP Ranges add an IP range (either the ip of the server or simply – and disable ‘Require SMTP authentication’.

Drop folder
If you’re not using the build-in SMTP service, you need to configure SharePoint incoming mail to use a dropfolder. Also, SharePoint relies on the x-sender and x-receiver headers to process the mail. hMailServer does not add these messages, so these need to be added

  • Create a [dropfolder] and make sure the SharePoint Timer Service has read/write/modify access to it.
  • Configure hMailServer’s scripts (Settings / Advanced / Scripts) to handle the OnDeliverMessage event.
  • Use the following script
  • Sub OnDeliverMessage(oMessage)
        Dim path, filename, fso, original, copy
        path = Split(oMessage.Filename, “\”, -1, 1)
        filename = “[dropfolder]” & path(UBound(path))
        Set fso = CreateObject(“Scripting.FileSystemObject”)
        Set copy = fso.CreateTextFile(filename, True)
        copy.WriteLine(“x-sender: ” & oMessage.FromAddress)
        copy.WriteLine(“x-receiver: ” & oMessage.To)
        Set original = fso.OpenTextFile(oMessage.Filename, 1)
    End Sub

  • Configure SharePoint incoming mails to point to the [dropfolder]
  • Optionally configure hMailServer with a catch-all address (Domains / / Advanced tab) so you don’t have to create an account for each Email Enabled library you use in SharePoint.

The script will copy ALL emails to the dropfolder. Emails that are not intended for SharePoint will simple be ignored by SharePoint. – Making SharePoint development a little easier

    Just stumbled upon this nice little tool in the Visual Studio Gallery. It extends the default SharePoint 2010 intellisense schema in Visual Studio 2010 by adding xs:annotations elements and replacing xs:string types with enumerated types.
    Download here:
    The result:
    Editing a FieldRef Element

    Reflector Alternatives

    Now that reflector is no longer a free tool (see, alternatives are gaining popularity.

    2 promising alternatives are ILSpy (, an open source initiative that initiated after the announcement by Red-Gate, and dotPeek ( a free tool by JetBrains, the same people that brought us ReShaper.

    IE8 Developer tools opening automatically when opening new tab

    Got an annoying issue today. Whenever I opened a new tab in Internet Explorer (IE8), a new instance of the ‘Developer tools’ would open automatically. Normally, when you close them, they shouldn’t reopen again until you explicitly want to.

    The result was after opening 6 or 7 tabs, there would also be 6 or 7 instances of the developer tools.

    I tried turning the off and closing IE, even rebooting, but they would keep ‘popping’ up.

    Eventually, I managed to get rid of them by doing the following

    1. Open the registry editor
    2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\IEDevTools
    3. Set the value of the key ‘Pinned’ to ‘1’ (REG_DWORD)
    4. Open IE – this loaded the developer tools to, but they were pinned (embedded) in the browser window
    5. close the developer tools while embedded

    This FINALLY prevented the developer tools from being loaded with every tab I openened.

    meh :/