Try our conversational search powered by Generative AI!

Installing Service API on Episerver v12.12

Vote:
 

Hi!

We are trying out Service API on our Epi Commerce version 12.12. We follow the guide here:  https://world.episerver.com/documentation/developer-guides/Episerver-Service-API/installation-and-configuration/. When browsing the site we get the following un-explanatory error: 

2021-03-05 14:32:44.445 [(null)] [1] ERROR EPiServer.Framework.Initialization.InitializationEngine.InitializeModules(:0): Initialize action failed for 'Initialize on class EPiServer.ServiceApi.IntegrationInitialization, EPiServer.ServiceApi, Version=5.3.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
System.NullReferenceException: Object reference not set to an instance of an object.
   at EPiServer.ServiceApi.IntegrationInitialization.<>c.<Initialize>b__2_0(HttpConfiguration config)
   at System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()
System.NullReferenceException: Object reference not set to an instance of an object.
   at EPiServer.ServiceApi.IntegrationInitialization.<>c.<Initialize>b__2_0(HttpConfiguration config)
   at System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()

Thankful for any help.

#249611
Mar 05, 2021 13:46
Vote:
 

Did you ever find a solution to this issue? I have run into this same problem and have spent days trying to fix it, I got to the same place you did.

#321231
Apr 29, 2024 22:24
Vote:
 

Hi Daniel

The correct documentation for your commerce version to follow is https://docs.developers.optimizely.com/customized-commerce/v1.3.0-service-api-developer-guide/docs/install-and-configure-version-5

Which project did you install the Service Api? Is your project using Membership or AspNetIdentity? Make sure to use the correct config setting.

#321270
Apr 30, 2024 2:36
* 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.