Adding Commerce to a Site Created with the Visual Studio Extension

I've been struggling with this for the last couple of hours, is there a detailed guide out there for adding commerce to a CMS project created in visual studio?

So far I've tried:

  • Deployment Center doesn't recognize the site if I add it to IIS, the site starts up fine and I can log in and access our work.
  • Tried installing via the nuget (just an attempt) it says that it can't find the catalog.
  • I've tried manually merging configuration from a working deployment center site into our project... and proved that I am not super human.

Any thoughts would be greatly appreciated.

James

#89018
Aug 05, 2014 23:11

Following the directions on a clean site:

http://world.episerver.com/Documentation/Items/Installation-Instructions/Installing-EPiServer-updates/Installing-Commerce/

Results in:

Server Error in '/' Application.The catalog configuration could not be found.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Exception: The catalog configuration could not be found.

Source Error: 

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\78e2cf3d\408efcc0\App_global.asax.0.cs    Line: 0 

Stack Trace: 

[Exception: The catalog configuration could not be found.]
   Mediachase.Commerce.Catalog.CatalogContext.EnsureCatalogConfigurationExists() +110
   Mediachase.Commerce.Catalog.CatalogContext..cctor() +215

[TypeInitializationException: The type initializer for 'Mediachase.Commerce.Catalog.CatalogContext' threw an exception.]
   Mediachase.Commerce.Catalog.CatalogContext.get_Current() +0
   Mediachase.Commerce.Initialization.<>c__DisplayClass9.


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009

#89019
Edited, Aug 05, 2014 23:34

Hi James,

Installing it via Nuget will not install Commerce Manager, the ECF or the database. So you will need to go via the deployment center. The problem you are facing is probably that you are using a different version of CMS than what the deployment center supports (7.5).

I would install a new CMS + Commerce site via deployment center, upgrade it via nuget to the latest version for BOTH the CMS site (use EPiServer.Commerce Nuget package for this one) and Commerce Manager (Commerce.Manager Nuget package), then start transfer over my code from the old stand alone project.

Adding in Commerce into an existing site is hard as you need to modify a lot of configs and copy the right files to the right location to make it work.

/T

#89020
Aug 06, 2014 0:03
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.