With commerce server SP 2, the developers can start developing their application in visual studio 2008 but after installing commerce server SP 2, you may not find project template in visual studio. By default commerce server doesn’t install these templates and you have to manually install them.
Prerequisites:
- Install commerce server 2007
- Install commerce server 2007 SP2
Follow these steps to enable templates in visual studio 2008.
- Open control panel – go to add /remove programs. Select “Microsoft Commerce Server 2007 Developer Edition” and click on “Change/Remove” button.
- Installation wizard will be opened. Select “Modify” and click on next button.
- Select “Project Creation Wizard” check box from the available components (as shown below) and complete the installation.
- Now when you open the Visual studio, you can able to see commerce server templates in visual studio (as shown below)
- If you try to create commerce server C# ASP.NET web application, you may get “Package Load Failure” exception. This is known issue with visual studio packages where the full path of commercepkg.dll is missing.
- Follow these steps to fix this problem.
- Open Registry
- If you are using x86 OS then navigate to
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio9.0Packages{1FAF7679-A5C1-4369-9F00-F87E8386F599}] - If you are using 64-bit OS then navigate to:
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio9.0Packages{1FAF7679-A5C1-4369-9F00-F87E8386F599}] - If you see the “CommercePkg.dll” in the registry “InprocServer32″ registry key, change this value to the full path to that dll:
- For x86 OS:
Change the “InprocServer32″ value to “C:Program FilesMicrosoft Commerce Server 2007CommercePkg.dll” - For 64-bit OS:
Change the “InprocServer32″ value to “C:Program Files (x86)Microsoft Commerce Server 2007CommercePkg.dll”
After performing above changes you can now create commerce server C# asp.net web application using visual studio 2008.
If you like this post, please click on our sponsor advertisement.

good post. thanks you for this great hunting information, will solve my problems
great post:). very helpful
I am not getting that template(Commerece C# Asp.net Web Application) in Commerce server 2009 and VS 2008 environment.
I have installed “Commerce Server 2009 Evaluation VPC (December 2009 update) is Available for Download ”
Can u help me ?
Tu Shi Great Ho …..
Thanks so much for this! Do you need to have Visual Studio 2005 installed as well in order to install the project creation wizard? When I try to follow your steps, there is a line in the description area saying, “At least one of the prerequisites for this feature is not installed.”
I found a user with similar issues here: http://social.msdn.microsoft.com/Forums/en/commserver2009/thread/e7346e70-245b-4778-b1ae-eff1a7b0042b
Is 05 really necessary?
Thanks again!
L