EPiServer with developers on both x32 and x64

Today’s tip is for all of you who want to share the same web.config among all developers in a project so you can check-in and handle changes in your Source Code Control Repository.

EPiServer installation directory and web.config

You might have noticed that the default installation path is different on 32-bit and 64-bit windows. Either you install EPiServer at “C:\Program Files\EPiServer” or “C:\Program Files (x86)\EPiServer”.

This is an issue if you have developers working on a project with both 32 and 64-bit windows since you have references to EPiServer installation directory in Program Files in your web.config.

But it can be easily solved by using a NTFS junction for developers running x64.

image

Run CMD Shell as an administrator and run:

cd "C:\Program Files"
mklink /j EPiServer "C:\Program Files (x86)\EPiServer"

Bookmark and Share
    1. Fredrik Haglund’s avatar

      Yes, that would also work.

      Personally I would prefer to use the local file system before involving Microsoft Networking and file shares.

      Reply

  1. Marthin Freij’s avatar

    Great tip! I’m still using Windows XP at my current customer. Will try linkd.exe in Windows Server 2003 Resource Kit Tools (http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en) as first thing tomorrow!

    Reply

    1. Fredrik Haglund’s avatar

      I hope it will help you!

      One of my projects has one web.config that works for all developers from Windows XP to Windows 7 62-bit and IIS5 to IIS7. It is possible since the production environment is Windows Server 2003 with IIS6 so we run in Classic mode in IIS7.

      Reply

  2. Rizo’s avatar

    Thanx! Really helpful post. This was driving me insane :)

    Reply