Try our conversational search powered by Generative AI!

Installing demo templates fails (6.0.530.0)

Vote:
 

Installing demo templates on a CMS6 site fails with error message: "You cannot call a method on a null-valued expression."

OS is Windows 7, Installing a new CMS 6 site with public templates worked fine. Seem to be related to the xml update part of the installation:

"Copied Web.Config.xmlupdate

An unhandled error has occured:
When executing
At C:\Program Files\EPiServer\CMS\6.0.530.0\Install\Modules\DemoTemplates\Insta
ll Demo Templates.ps1:202 char:48
+ $startPageID = $node.siteSettings.GetAttribute <<<< ("pageStartId")
True
=
Get-EPiIsBulkInstalling
An error has occured and the transaction will be rolled back
The was an error during the rollback phase. Your system may be left in an unstable condition
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Configuration.Install.Installer.Rollback(IDictionary savedState)
   at EPiServer.Install.InstallationManager.RollbackBulkInstall()
Object reference not set to an instance of an object.
The was an error during the rollback phase. Your system may be left in an unstable condition
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Configuration.Install.Installer.Rollback(IDictionary savedState)
   at EPiServer.Install.InstallationManager.RollbackBulkInstall()
Object reference not set to an instance of an object.
Failed to rollback creation of directory C:\EPiServer\Sites\CMS 6 demosite
The process cannot access the file 'C:\EPiServer\Sites\CMS 6 demosite' because it is being used by another process.
Rolledback
An unhandled error has occured:
You cannot call a method on a null-valued expression.
When executing
At C:\Program Files\EPiServer\CMS\6.0.530.0\Install\Modules\DemoTemplates\Insta
ll Demo Templates.ps1:202 char:48
+ $startPageID = $node.siteSettings.GetAttribute <<<< ("pageStartId")
=
Get-EPiIsBulkInstalling
Error - System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.
   at System.Management.Automation.ParserOps.CallMethod(Token token, Object target, String methodName, Object[] paramArray, Boolean callStatic, Object valueToSet)
   at System.Management.Automation.MethodCallNode.InvokeMethod(Object target, Object[] arguments, Object value)
   at System.Management.Automation.MethodCallNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
   at System.Management.Automation.AssignmentStatementNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
   at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
Copied Web.Config.xmlupdate
An unhandled error has occured: When executing
At C:\Program Files\EPiServer\CMS\6.0.530.0\Install\Modules\DemoTemplates\Install Demo Templates.ps1:202 char:48+ $startPageID = $node.siteSettings.GetAttribute <<<< ("pageStartId")
True=Get-EPiIsBulkInstallingAn error has occured and the transaction will be rolled backThe was an error during the rollback phase. Your system may be left in an unstable conditionObject reference not set to an instance of an object.System.NullReferenceException: Object reference not set to an instance of an object.   at System.Configuration.Install.Installer.Rollback(IDictionary savedState)   at EPiServer.Install.InstallationManager.RollbackBulkInstall()Object reference not set to an instance of an object.The was an error during the rollback phase. Your system may be left in an unstable conditionObject reference not set to an instance of an object.System.NullReferenceException: Object reference not set to an instance of an object.   at System.Configuration.Install.Installer.Rollback(IDictionary savedState)   at EPiServer.Install.InstallationManager.RollbackBulkInstall()Object reference not set to an instance of an object.Failed to rollback creation of directory C:\EPiServer\Sites\CMS 6 demositeThe process cannot access the file 'C:\EPiServer\Sites\CMS 6 demosite' because it is being used by another process.Rolledback
An unhandled error has occured:You cannot call a method on a null-valued expression.When executing
At C:\Program Files\EPiServer\CMS\6.0.530.0\Install\Modules\DemoTemplates\Install Demo Templates.ps1:202 char:48+ $startPageID = $node.siteSettings.GetAttribute <<<< ("pageStartId")
=Get-EPiIsBulkInstallingError - System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.   at System.Management.Automation.ParserOps.CallMethod(Token token, Object target, String methodName, Object[] paramArray, Boolean callStatic, Object valueToSet)   at System.Management.Automation.MethodCallNode.InvokeMethod(Object target, Object[] arguments, Object value)   at System.Management.Automation.MethodCallNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)   at System.Management.Automation.AssignmentStatementNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)   at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)"
#37925
Mar 24, 2010 9:39
Vote:
 

I have the same issue...

#37927
Mar 24, 2010 10:18
Vote:
 

Installation will fail if your sitename contains spaces - support has been informed about the issue.

#38061
Mar 29, 2010 10:05
Vote:
 

I have the same issue, but when installing an EPiServer CMS  R2 site with Database - without templates.

#54415
Oct 13, 2011 12:10
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.