将站点从CMS 6 R2升级到7时,有没有办法覆盖连接超时?

时间:2015-05-12 09:44:24

标签: episerver

我在将站点从CMS 6 R2升级到7时遇到问题。使用部署中心升级时出现等待超时错误。

我已经尝试在C:\ Program Files(x86)\ EPiServer \ Shared \ Install \ EPiServerInstall.exe.config中添加以下配置:

 <appSettings>
  <add key="commandTimeout" value="600"/>
 </appSettings>

但无济于事。

尽管我不想诉诸手动升级,有没有办法覆盖连接超时?

提前感谢您的帮助。

编辑:

升级日志(太长,所以我剪切它只是为了显示错误消息):

....
Executing database script "C:\Program Files (x86)\EPiServer\CMS\7.0.586.1\Upgrade\Database\sql\0007_0000_0041_0000to0007_0000_0147_0000.sql"
An error has occured and the transaction will be rolled back
Rolledback
The wait operation timed out
The wait operation timed out

An unhandled error has occured:
The wait operation timed out
When executing
At C:\Program Files (x86)\EPiServer\CMS\7.0.586.1\Upgrade\System Scripts\Upgrad
e Site Database (SqlServer).ps1:9 char:2
+     Execute-EPiSqlSvrScript -EPiServerScript -ScriptPath $file -SqlServerName
 $dbCo ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~

=
Get-EPiIsBulkInstalling
At C:\Program Files (x86)\EPiServer\CMS\7.0.586.1\Upgrade\System Scripts\Upgrade Site Database (SqlServer).ps1:9 char:2
+     Execute-EPiSqlSvrScript -EPiServerScript -ScriptPath $file -SqlServerName $dbCo ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
   at EPiServer.Install.InstallationManager.Install(Installer installer)
   at EPiServer.Install.SqlServer.SqlServerInstallationManager.ExecuteDatabaseScript(String sqlServerName, Nullable`1 sqlServerPort, String databaseName, String loginName, String loginPassword, String scriptFilePath, Boolean avoidDbTransaction, Boolean isEPiServerScript, IDictionary parameters)
   at EPiServer.Install.SqlServer.Cmdlets.ExecuteSqlScriptCmdlet.ProcessRecord()
   at System.Management.Automation.Cmdlet.DoProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()

2 个答案:

答案 0 :(得分:0)

如果我没有弄错(自从我使用部署中心以来已经有一段时间了),它会使用web.config中的连接字符串作为网站,并且您可以定义超时。

请参阅此处的示例:https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectiontimeout%28v=vs.110%29.aspx

答案 1 :(得分:0)

我重新启动了网站,然后刷新了DC中的网站,现在它正常工作。看起来设置在DC中缓存。