Archives / 2008 / May
  • Running SharePoint on Windows Vista!

    Tags: SharePoint, Windows Vista

    Yes, you heard it right - now you can install Windows SharePoint Services 3.0 on Windows Vista! No need for a Windows Server 2003/2008 or virtual machines, remote debugging or any other weird workarounds!

    Jonas Nilsson of Bamboo Solutions has come up with a way to allow you to install WSS onto a Vista x86/x64 machine using a special installer file. The post contains detailed instructions on how to install WSS 3.0 or MOSS 2007 on any Windows Vista machine with IIS7.

    Installing WSS 3.0 on Windows Vista

    This is a dream come true for me, and will save me and my clients a lot of time, so I had to give it a try directly (pretty tired after a nice weekend in Rome with my wife).

    The installation was quite easy, if you follow the instructions. I stumbled upon a problem while configuring the IIS 7; WSS need the IIS 6 Management Compatibility features to be enabled to install successfully, which I hadn't. Vista gave me some headache while trying to install this optional feature, since the Windows feature list was empty (see the left image below). I had to do chkdsk /f and a sfc /scannow to fix this. Then I could install the IIS 6 features (which was the procedure which took the longest time of the whole installation).

    No Windows Vista features to turn on or off!!!IIS 6 Management Compatibility features enabled 

    After that configured and done, everything went smooth and I had everything up and running within a few minutes...

    SQL Databases created locally:

    WSS Databases

    Windows Services running:

    WSS Services on Vista

    Central Administration running:

    WSS on Vista 

    Thank you Jonas!!!

  • Visual Studio 2008 not responding when you are checking in files to SourceSafe

    Tags: Visual Studio

    I have repeatedly had Visual Studio 2008 hang or stop responding when I'm checking in files to Visual SourceSafe, especially when checking in large amount of files. It just stays there and eventually dims out (as non responding application does in Windows Vista). The ultimate solution is to kill the devenv.exe process and start over.

    VS2008 Not Responding

    But I have discovered that it is not just hanging, it's just the main application window that stops responding. If you hover the application in the task bar on Windows Vista you see the preview window showing the check-in SourceSafe dialog. So you just have to wait it out.

    Preview shows the SourceSafe dialog

    Still, the Visual Studio team should do this on another thread so the main window don't freeze or at least make it so that the dialog is shown in front of the application.

  • Fixing VPN and IPSec pass-through problems with Belkin N1 Vision router

    Tags: Network, Hardware

    Belkin N1 Vision A couple of weeks ago I bought the Belkin N1 Vision router and was really impressed with the design, usability and performance of it. This was until I tried to connect to my work using a Cisco VPN - it just did not work!

    The specifications for the router states that it has VPN support; IPSec pass-through and PPTP. On other routers I have seen methods to enable/disable IPSec pass-through in the router configuration, but I could not locate it in the N1 setup utility. After some googling I found out that this is always enabled on the N1 Vision, duh - guess not!


    So I finally submitted a support case to Belkin support (twice - one in the US and one in Scandinavia/Sweden). Quite quickly I received response  on both cases and after a few checks on firmware version, IP number series etc the Swedish support gave me access to a pre-release firmware. I uploaded it to the router and within a few minutes the VPN access worked perfectly.

    So if you have this problem contact Belkin support and ask for the pre-release firmware (F5D8232-4_WW_1.00.13, the latest official is F5D8232-4_WW_1.00.11), or contact me.

  • How to sort XML without XSL in the .NET Framework

    Tags: .NET, C#, XML

    I have several times needed a way to sort XML, retrieved from a file or a web service, inline without invoking XSL transformations, which is the most common way to do it as I have seen.

    The .NET Framework contains the System.Xml.XPath namespace and is available from the .NET Framework 1.1 and up. This namespace contains a number of classes which can improve the performance of your .NET classes when working with XML. Specifically the System.Xml.XPath.XPathExpression contains a method (System.Xml.XPath.XPathExpression.AddSort) to sort the XPath query results.

    The code below shows you an easy way to sort your XML data based on this namespace.

    This is the XML we will use:

      <Entry id="1">
      Entry id="2">
      <Entry id="3">

    To sort this based on the Name element all we have to do is to create an XPathNavigator and add an XPath Expression with sorting like this:

    XmlDocument doc = new XmlDocument();
    XPathNavigator navigator = doc.CreateNavigator();
    XPathExpression expression = navigator.Compile("Entries/Entry");
    expression.AddSort("Name", XmlSortOrder.Ascending, XmlCaseOrder.UpperFirst,     string.Empty, XmlDataType.Text);
    XPathNodeIterator iterator = navigator.Select(expression);
    foreach (XPathNavigator item in iterator) {

    As you can see we create the XPathNavigator from the XmlDocument using the CreateNavigator method (which can be found on XmlNode and derivatives as well) and the create the expression with the sort and executes it using the Select method. Really simple!

    To sort on the id attribute we change the AddSort method call to this:

    expression.AddSort("@id", XmlSortOrder.Ascending, XmlCaseOrder.UpperFirst, string.Empty, XmlDataType.Number);

    Notice the XmlDataType.Number value of the last parameter.

    The sample above will work on the .NET Framework 2.0 and above, since it uses the GetEnumerator() method of the XPathNodeIterator class, which was introduced in 2.0.

    To make it work in .NET 1.1 rewrite the foreach statement with something like this:

    XPathNodeIterator iterator = navigator.Select(expression);
    while(iterator.MoveNext()) {

    Hope this one will help you doing crazy workarounds...

    Update:  changed typo in .NET 1.1. code sample...

  • Aftermath of Swedish OOXML vote

    Tags: XPS, Office Open XML

    The Swedish Standards Institute has as a result of the chaotic OOXML vote in August changed their rules for participating in technical committees and voting in them.

    Previously you could just before the vote sign the agreement and participate. From now on you must have been a member of the technical committee at least three weeks ahead of the votes you would like to participate in. The new rules also clearly points out that you only have one vote (I'm still wondering who voted twice...).

    I think this is a good idea, but I have a feeling that in any similar cases (read XPS) in the future, the "stuffing" will begin three weeks ahead of the vote instead.

  • Windows Vista performance tips

    Tags: Windows Vista

    Ed BottAuthor, editor and blogger, Ed Bott is currently publishing a series called Fixing Windows Vista, which contains really nice information and instructions on how to get the most out of your Vista machine.

    Currently three parts has been published:

    Fixing Windows Vista, one machine at a time

    Ed Bott shows how to install a clean Vista with the latest drivers (which is the most important thing on any Vista system) on a Sony Vaio.

    Fixing Windows Vista, Part 2: Taming UAC

    The User Account Control, UAC, has been one of Vistas most discussed and mocked features. I think it is a great feature, but it could of course be tweaked a little more. Until recently I only had one annoyance with the UAC and that was when I wanted to use the Task Manger and show all processes. To do that with UAC enabled you had to click Ok in the consent dialog. Of course when you need this your machine is working heavy and it all takes a long time to show the consent dialog and the secure desktop. Ed shows here how to solve these problems by creating a shortcut to a Task Manager that starts with showing all processes without the UAC, using the Scheduled Tasks. He also has instructions on how to disable the secure desktop.

    If you try the Scheduled Task trick, and your shortcut does not work try to use this command line instead, notice the slash before the task name.

    C:\Windows\System32\schtasks.exe /run /tn “\Task Manager wo UAC“

    Fixing Windows Vista, Part 3: Top Troubleshooting Tools

    The latest part covers how you can use the built-in tools in Vista to identify your bottlenecks, such as the Task Manager, Resource Monitor and the Windows Experience Index.

    As always it's all about the drivers...

About Wictor...

Wictor Wilén is the Nordic Digital Workplace Lead working at Avanade. Wictor has achieved the Microsoft Certified Architect (MCA) - SharePoint 2010, Microsoft Certified Solutions Master (MCSM) - SharePoint  and Microsoft Certified Master (MCM) - SharePoint 2010 certifications. He has also been awarded Microsoft Most Valuable Professional (MVP) for seven consecutive years.

And a word from our sponsors...