Posts Tagged ‘visual studio project templates’
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.
