Unit testing custom property on a MCMS posting

I needed to unit test a method that retrives a value from a custom property on a Microsoft Content Management Server posting. This is how I did it: [Test] public void GetLanguage_GetLanguageFromPosting() { using(CmsApplicationContext appCtx =       new CmsApplicationContext()) { appCtx.AuthenticateAsCurrentUser(         PublishingMode.Update); try { Template templ = appCtx.Searches.GetByGuid               (”{8DD8B72A-31B7-495B-80F9-1319FAA78BF2}”)                as Template;             Posting p =                appCtx.RootChannel.CreatePosting(templ); CustomProperty prop = […]

Shrink VPC virtual hard disks

If you’ve been working with Microsoft Virtual PC you probably noted that the virtual hard disks (.vhd files) tend to bulk out on your host drive. So here is a little tip to help with this, that I just discovered. From within your guest OS, Capture ISO… and point to C:\Program Files\Microsoft Virtual PC\Virtual Machine […]

Security Best Practises for MCMS 2002

Microsoft Content Management Server 2002: Security Best Practises now available at: http://www.microsoft.com/downloads/details.aspx?FamilyId=473BEA55-08C1-439E-BA7F-698E5EC343ED&displaylang=en. Overview: This download consists of a security white paper and the ‘Minimum permissions’ batch script. The white paper explains how IT administrators can apply security best practices to Microsoft Content Management Server (MCMS) 2002 Service Pack 1a (SP1a) environments. It includes sections on […]

PUSHD and POPD

Ever written a .bat-file to do som deploying or such. It’s usally a lot of cd ..-ing to get to the right path and keeping track of the path. I have. So reading Scott Hanselman’s blog his post turnd me on to pushd and popd. This is awsome, you can keep a stack of directories. […]

Productivity in Outlook 2003

This Monday I attended a course on how to work more effective in Outlook. The course is based on the philosophy in The 7 Habits of Highly Effective People by Stephen R. Covey. So it’s not all about Outlook YOU have to change some things to :). The first thing we did when cranking up Outlook […]

Connection String Trix

Very often when starting out a new project with a backend database I have usally forgotten exaclty how to compose a connetion string. So, what do I do? Create an emtpy text file someware, reneame it to .udl (instead of .txt). Open it up by double-clicking it and use the dialog to get your connection up […]

Changing My Blog Software

So, I’ve just changed my blogging software from dasBlog to SubText. Why? Hum, cause I felt like change. I tried to install SubText, wich by the way was almost to easy, and I liked what i saw. Change is good for you! I’ll keep the old blog available for a while at http://www.nnihlen.com/dasBlog until I’m […]