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)EPiServerCommonFramework7.0.844.1InstallSystem Sc
riptsUpgrade 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)EPiServerCommonFramework7.0.844.1InstallSystem Sc
riptsUpgrade Site.ps1:93 char:17
+ -SqlServerName <<<< $properties.DatabaseServerName `
=
Get-EPiIsBulkInstalling
At C:Program Files (x86)EPiServerCommonFramework7.0.844.1InstallSystem ScriptsUpgrade 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.
- 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.
- 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:Userstobias> Set-ExecutionPolicy ‘unrestricted’
- Set-ExecutionPolicy -scope CurrentUser -executionPolicy Unrestricted
- Re-Run the setup and fix the other Issues.
This comment has been removed by the author.
Hi,
I 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.
Regards
/K