Installing EpiServer Community on a commerce site
Installing EPiServer relate on an EPiServer CMS 7 site working with EPiServer Commerce can be a challenge, This post can be helpful for those who are trying to do this or facing issue in installing other EPiServer products.
Technologies under discussion are
EPiServer CMS 7.1,
EPiServer Commerce 1 R3
EPiServer Relate+ 7
Issue: Installing Commerce and Relate (Community) is a no go
http://world.episerver.com/Support/Bug-list-beta/bug/95414/
Issue details:
An unhandled error has occured:
The argument is null or empty. Supply an argument that is not null or empty and
then try the command again.
When executing
At C:\Program Files (x86)\EPiServer\CommonFramework\7.0.844.1\Install\System Sc
ripts\Upgrade Site.ps1:93 char:17
+ -SqlServerName <<<< $properties.DatabaseServerName `
An unhandled error has occured:
The argument is null or empty. Supply an argument that is not null or empty and
then try the command again.
When executing
At C:\Program Files (x86)\EPiServer\CommonFramework\7.0.844.1\Install\System Sc
ripts\Upgrade Site.ps1:93 char:17
+ -SqlServerName <<<< $properties.DatabaseServerName `
=
Get-EPiIsBulkInstalling
At C:\Program Files (x86)\EPiServer\CommonFramework\7.0.844.1\Install\System Scripts\Upgrade Site.ps1:93 char:17
+ -SqlServerName <<<< $properties.DatabaseServerName `
System.Management.Automation.ParentContainsErrorRecordException: Cannot validate argument on parameter 'SqlServerName'. The argument is null or empty. Supply an argument that is not null or empty and then try the command again.
Technologies under discussion are
EPiServer CMS 7.1,
EPiServer Commerce 1 R3
EPiServer Relate+ 7
Issue: Installing Commerce and Relate (Community) is a no go
http://world.episerver.com/Support/Bug-list-beta/bug/95414/
Issue details:
An unhandled error has occured:
The argument is null or empty. Supply an argument that is not null or empty and
then try the command again.
When executing
At C:\Program Files (x86)\EPiServer\CommonFramework\7.0.844.1\Install\System Sc
ripts\Upgrade Site.ps1:93 char:17
+ -SqlServerName <<<< $properties.DatabaseServerName `
An unhandled error has occured:
The argument is null or empty. Supply an argument that is not null or empty and
then try the command again.
When executing
At C:\Program Files (x86)\EPiServer\CommonFramework\7.0.844.1\Install\System Sc
ripts\Upgrade Site.ps1:93 char:17
+ -SqlServerName <<<< $properties.DatabaseServerName `
=
Get-EPiIsBulkInstalling
At C:\Program Files (x86)\EPiServer\CommonFramework\7.0.844.1\Install\System Scripts\Upgrade Site.ps1:93 char:17
+ -SqlServerName <<<< $properties.DatabaseServerName `
System.Management.Automation.ParentContainsErrorRecordException: Cannot validate argument on parameter 'SqlServerName'. The argument is null or empty. Supply an argument that is not null or empty and then try the command again.
Possible Solutions:
Solution 1:
- Follow process for installing CMS 7, Relate, Commerce
- Install Site with database, with Commerce and the sample site
- Install a Relate site and note references.
- Add the same references to the Commerce site
- Copy and paste Community/Mail related sections of web.config in the Relate site to the commerce web.config
- Find the install database script in the install directory for Relate, run the script against the site database to create the Community tables.
(I will write a separate post that how we can merge a community data base with a CMS database.)
Solution 2: STAR Solution, I tried a different approach that can be used in other setup related issues also.
- Find the issue in PS1
- Fix the issue in PS1 File.
- Remove the Signature At the bottom of the site. e.g # SIG # Begin signature block ................................................... # SIG # End signature block
- Now File is no longer signed therfore we will need some power shell policy adjustments.
- PS C:\Users\tobias> Set-ExecutionPolicy 'unrestricted'
- Set-ExecutionPolicy -scope CurrentUser -executionPolicy Unrestricted
- Re-Run the setup and fix the other Issues.
I tried this approach to solve some issues while installing Commerce on a hosting server also.
This comment has been removed by the author.
ReplyDeleteHi,
ReplyDeleteI have the same issue trying to install commerce to a CMS (mvc) site.
Could you elaborate a bit on what the issue in the PS1 file is? Is the property wrong or have you just hardcoded a db name?
Thanks in advance!
Hi Kim, Sorry for late reply, Yes you just have to hard code this, somehow values defined through setup are not picking at this point.
DeleteRegards
/K