Opening a new EPiServer CMS 5 SP1 project in VS 2008

by: Steve Celius

When you install a new EPiServer CMS 5 project using the EPiServer CMS Manager, the .csproj file shipped is for Visual Studio 2005 SP1. Opening the project in Visual Studio 2008 will start the project upgrade wizard, which will fail if you have installed the new site as a root site in IIS.

Open the PublicTemplates.csproj file in your favorite editor. In the bottom of the file, it should look something like this:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  ...
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <AutoAssignPort>False</AutoAssignPort>
          <DevelopmentServerPort>6666</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseIIS>True</UseIIS>
          <IISUrl>http://localhost/publictemplates</IISUrl>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
</Project>

The line you need to change is

<IISUrl>http://localhost/publictemplates</IISUrl>

to:

<IISUrl>http://localhost</IISUrl>

You can then open the project in Visual Studio 2008, run the upgrade wizard and you're good to go.

30 January 2008


Comments

  1. Remember to run VS 2008 as administrator (Vista) or the conversion will fail without any hint on what to do. Also, when you open the project, run VS as an administrator or VS will give you "System.Runtime.InteropServices.COMException" and kick you out. I'm running vanilla Vista.
  2. I encountered the problem described in your article, but the given solution did not work for me. It was not until I changed the setting to false that the VS 2008 conversion wizard succeded with the upgrade.
  3. And by setting I mean the UseIIS setting... ;-)
Post a comment    
User verification Image for user verification  
Steve Celius

About me

I work for EPiServer in Norway, mostly with technical stuff. Trying to keep up with all the new stuff from the development team. I also hang out on the EPiCode project, why don't you come join us?


Syndications


Archive


Tag cloud

EPiTrace logger