November Happy Hour will be moved to Thursday December 5th.

Connection string not found after upgrade Episerver Commerce 7.5 to 8.5

Vote:
 

Connection string not found after upgrade Episerver Commerce 7.5 to 8.5.  Someone know how to fix this?

Server Error in '/' Application.

No connection string found with the configured name 'EPiServerDB'.

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.Configuration.ConfigurationErrorsException: No connection string found with the configured name 'EPiServerDB'.

Source Error: 

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\a010f2ca\2ca5c19d\App_global.asax.0.cs    Line: 0 

Stack Trace: 

[ConfigurationErrorsException: No connection string found with the configured name 'EPiServerDB'.]
   EPiServer.Data.Providers.SqlDatabaseFactory.CreateDefaultHandler() +496
   StructureMap.Pipeline.LambdaInstance`1.build(Type pluginType, BuildSession session) +65

[StructureMapException: StructureMap Exception Code:  207
Internal exception while creating Instance 'c078bbc5-2aa0-472d-a6a4-908fa86c74d1' of PluginType EPiServer.Data.IDatabaseHandler, EPiServer.Data, Version=7.18.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7.  Check the inner exception for more details.]
   StructureMap.Pipeline.LambdaInstance`1.build(Type pluginType, BuildSession session) +224
   StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
   StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
   StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
   StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
   StructureMap.BuildSession.CreateInstance(Type pluginType) +23
   StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
   StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
   StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, BuildSession session) +86
   lambda_method(Closure , IArguments ) +52
   StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
   StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
   StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +303
   StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
   StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
   StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
   StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
   StructureMap.BuildSession.CreateInstance(Type pluginType) +23
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +70

[ActivationException: Activation error occurred while trying to get instance of type DatabaseVersionValidator, key ""]
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +181
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance() +59
   EPiServer.Data.DataInitialization.Initialize(InitializationEngine context) +121
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +64
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +719
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +168
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +313
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +104
   EPiServer.Global..ctor() +110
   Spendrups.Global..ctor() +40
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\a010f2ca\2ca5c19d\App_global.asax.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +127
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14407909
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +198
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +83
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +312
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12601936
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12441597
#114464
Dec 12, 2014 9:38
Vote:
 

Hi,

You can simply copy this line

<add name="EPiServerDB" connectionString="Data Source=.;Database=<your_database>;User Id=<your_acc>;Password=<your_password>;Network Library=DBMSSOCN;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />

from connectionStrings.config of Commerce Manager to connectionStrings.config of CMS site, and vice-versa. They should be the same.

Regards.

/Q

#114470
Dec 12, 2014 10:23
Vote:
 

Thank you for replay Quan and now i got another error. It seem very complicate to upgrade episerver commerce or just me who got lots of problem :)

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Unknown server tag 'IbnWebControls:CommandManager'.

Source Error: 

Line 89:     <asp:ScriptManager ID="sm1" runat="server" EnablePartialRendering="true" ScriptMode="Debug"
Line 90:         EnableScriptGlobalization="true" EnableScriptLocalization="true" EnableHistory="true" />
Line 91:     <IbnWebControls:CommandManager ID="cm1" runat="server" ContainerId="containerDiv" />
Line 92:     <div id="containerDiv" runat="server">
Line 93:     </div>


Source File: /Apps/Shell/Pages/default.aspx    Line: 91 

#114569
Dec 15, 2014 16:54
Vote:
 

Hi,

It looks like you applied wrong package. You should not use EPiServer.CommerceManager package for front-end site.

I can guarantee that the upgrade of episerver commerce, for both frontend and backend sites, is quite smooth. I would recommend you do restore your site and do step-by-step over.

Regards.

/Q

#114579
Dec 16, 2014 2:59
Vote:
 
#114626
Dec 16, 2014 15:13
Vote:
 

which is correct package? How to update commerce manager? 

i am getting confuse after i did migration step, what is the next step?

http://world.episerver.com/documentation/Items/Installation-Instructions/Installing-EPiServer-updates/product-specific-updating-steps/commerce-specific-updating-steps/

#114627
Dec 16, 2014 15:13
Vote:
 

Hi,

For front-end site you only need to install EpiServer.Commerce, for backend site (Commerce Manager), then install EPiServer.CommerceManager  to ConsolerManagerUpdate project (http://world.episerver.com/contentassets/937cd70588e54118b427542cef83b09a/mediachase-consolemanagerupdate-20141008.zip).

Regards.

/Q

#114650
Dec 17, 2014 4:47
Vote:
 

Thank you Quan , i did what you recommended and it's work fine for my localhost but when i deployed site to server. We get another problem in cms login page.

Unable to find a module by assembly 'EPiServer.Commerce.AddOns.Manager, Version=2.0.926.0, Culture=neutral, PublicKeyToken=null'
Parameter name: moduleAssembly

Episerver.commerce.AddOns.Manager.dll found  in my wwwroot/modulesbin  Should it be somewhere else or do i have to config something?

#114654
Dec 17, 2014 10:56
Vote:
 

No, That one and Addons.UI.dll should be removed, as from our readme.txt in EPiServer.Commerce.UI package:

Remove add-on assemblies
------------------------

This step removes EPiServer.Commerce.AddOns.UI.dll (if installed) from the modulesbin folder.
If you have reconfigured the probing path for your site, then these assemblies will be removed from the
configured location.

If you receive an error during this step, then the process installing the nuget package does not
have permission to delete the files. In this case, a user with the appropriate permissions will
need to delete EPiServer.Commerce.AddOns.UI.dll (if installed) from the modulesbin folder manually.

Regards.

/Q

#114655
Dec 17, 2014 10:58
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.