Changing Site Settings through code in SharePoint 2010

It’s been quite a while since I had the time to post. A customer dropped me this question today and I thought it’d be interesting to share. He wanted to change the “Allow rules to specify another site as a target location”-setting (seen below) through code and needed to know if this could be done….


Using SSL without an Internet connection

Problem If you have a web application that uses SSL and this application, for some reason, is hosted on an IIS that doesn’t have Internet access you will eventually find that any call to the server over SSL will take a lot of time to reply. It doesn’t matter if it’s ASP.NET, classic ASP or…


Adding Server ROles to an IIS installation on an RODC

In a recent case I was involved with I stumbled upon something quite interesting. The customer had set up a brand new Windows 2008 Server running IIS, and made it into a Read Only Domain Controller (RODC). Having done this they now wanted to add the FTP-server Role to the existing IIS installation and found…


Creating a game for the Zune

I’ve finally had the time to sit down and create a simple game for my Zune. Rather than running off and creating a complex game requiring a lot of AI, etc I wanted to create a simple application so that I could focus on the XNA-specifics. I decided to make a Code Breaker game, also…


Running a scheduled PowerShell script on a pre-Vista OS

It’s been fun to see the reception that PowerShell has gotten. People are using it for tons of different stuff and the ingenuity in some of the scenarios is quite impressive. There is one thing, however, that you should be aware of. PowerShell is not an ideal candidate for execution through the Task Scheduler. Problem…


Office Automation

A very common scenario that keeps sprouting new heads like a hydra is Office Automation. Let me start by saying that this is not supported. There is a KB-article number 257757 discusses this, and clearly states the following: Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended,…


Back in business

Okay, after a summer break that no doubt got a little longer than expected I am now I’m now back in the saddle again. Next post will most likely be a follow-up on the PowerShell post I wrote a while back. Stay tuned. / Johan


What to do about the slow startup of web services

Due to the architecture of web services and web applications they can be quite slow to start. For example on my Windows 2003-box the initial localhost-call to a simple “Hello World!”-web service takes approximately 8 seconds, while the next request is more or less immediate. Why is this? This isn’t news, really. One of the…


Did you know Windows 9 will be voice controlled only?

Yesterday an early Alpha of Windows 9 was released on the corporate network and I couldn’t resist installing it. I started up the installation, which went very smoothly by the way, filled in the necessary details, clicked “Finish” and left it running overnight. When I arrived this morning a friendly Power Shell-window was greeting me…


Games on the Zune

I was really excited to hear that XNA 3.0 will support game development for the Zune. I’ve always been interested in XNA and have secretly dreamed of writing my own Xbox 360 game ever since the alpha. Sadly I just don’t seem to find the spare time. Key features As I looked at the info…