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

Problem upgrading/migrating Commerce 1 R3(7.0) to 7.5 through EPiServer Deployment Center

Vote:
 

When migration project from Commerce 1 R3(7.0) to 7.5 have following error in EPiServer Deployment Center window:

Could not find file 'C:\Projects\SomeProject\Web.CommerceManager\b\web.config'.
When executing
At C:\Program Files (x86)\EPiServer\CMS\7.5.394.2\Install\Modules\EPiServer Commerce 7.5.394.2\Install\Upgrade EPiServer Commerce.ps1:416 char:4
+ Add-EPiAssemblyRedirect -TargetFilePath $commerceManagerWebConfig
File -Source ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

False
=
Get-EPiIsBulkInstalling, 
Error, System.Management.Automation.CmdletInvocationException: The WriteObject and WriteError methods cannot be called from outside the overrides of the BeginProcessing, ProcessRecord, and EndProcessing methods, and only from that same thread. Validate that the cmdlet makes these calls correctly, or please contact Microsoft Support Services. ---> System.Management.Automation.PSInvalidOperationException: The WriteObject and WriteError methods cannot be called from outside the overrides of the BeginProcessing, ProcessRecord, and EndProcessing methods, and only from that same thread. Validate that the cmdlet makes these calls correctly, or please contact Microsoft Support Services.
at System.Management.Automation.MshCommandRuntime.ThrowIfWriteNotPermitted(Boolean needsToWriteToPipeline)
at System.Management.Automation.MshCommandRuntime.WriteHelper_ShouldWrite(ActionPreference preference, ContinueStatus lastContinueStatus)
at System.Management.Automation.MshCommandRuntime.WriteWarning(WarningRecord record, Boolean overrideInquire)
at System.Management.Automation.MshCommandRuntime.WriteWarning(String text)
at System.Management.Automation.Cmdlet.WriteWarning(String text)
at EPiServer.Install.UI.CmdletProgressHelper.WriteWarning(String message)
at EPiServer.Install.UI.CmdletProgressHelper.Progress_Updated(Object sender, ProgressEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at EPiServer.Install.InstallationManager.WriteProgress(Exception ex, String message)
at EPiServer.Install.InstallationManager.RollbackBulkInstall()
at EPiServer.Install.Common.Cmdlets.RollbackBulkInstallCmdlet.ProcessRecord()
at System.Management.Automation.Cmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at EPiServer.Install.Scripting.PowerShellEnvironment.RunScript(PowerShellScriptInfo scriptFileInfo, IDictionary`2 parameters, PSHost host)
at EPiServer.Install.ScriptRunner.Run()

    

 

#83130
Mar 26, 2014 12:11
Vote:
 

Solution:

CMS site appSettings.config file had following configured:

<add key="CommerceManagerBinPath" value="C:\Projects\SomeProject\Web.CommerceManager\bin" />
<add key="CommerceManagerSharedPath" value="C:\Projects\SomeProject\Web.CommerceManager\Shared" />

  

Correct value for migration to work is:

<add key="CommerceManagerBinPath" value="C:\Projects\SomeProject\Web.CommerceManager\Bin" />
<add key="CommerceManagerSharedPath" value="C:\Projects\SomeProject\Web.CommerceManager\Shared" />

    

What is the difference one might ask, first one has lowercase bin second one starts with uppercase - 'Bin'

Problem is in 'C:\Program Files (x86)\EPiServer\CMS\7.5.394.2\Install\Modules\EPiServer Commerce 7.5.394.2\Install\Install EPiServer Commerce.ps1' script line 206:

$commerceManagerPath = $commerceManagerBinPath.trimEnd("Bin")

    

So it Expects it to be Bin, no lowercase value will work unless script file is fixed or, your own site configuration reffers to bin folder as 'Bin'

#83131
Edited, Mar 26, 2014 12:18
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.