2014-06-06 50 views
0

我想发布一个香草Sitecore的网站,我的本地Azure的模拟器,但是我收到以下错误:Sitecore的Azure的包装错误

6/6/2014 12:05:39DevFabricLCd01Role01PScBafProduction [P] Execute package failed System.ApplicationException: DevFabricLCd01Role01PScBafProduction [P] Execute package failed ---> System.ApplicationException: Execute package is failed ---> System.InvalidOperationException: Build Package failed: Searching for imported module Diagnostics at C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.0\bin\plugins\Diagnostics\Diagnostics.csplugin... Searching for imported module Caching at C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.0\bin\plugins\Caching\Caching.csplugin... Copying 'C:\Sitecore\Azure\Data\AzurePackages(3) DevFabric\SitecoreWebSite' to C:\Sitecore\Azure\Data\AzurePackages(3) DevFabric\DevFabricLCd01Role01ScBaf20140606110529.cspkg\roles\SitecoreWebRole\approot... UCPack_Command_Line: Error : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at Sitecore.Diagnostics.Assert.IsFalse(Boolean condition, String message) at Sitecore.Azure.Managers.Pipelines.CreateAzurePackage.Azure.ExecutePackage.Action(RolePipelineArgsBase arguments) at Sitecore.Azure.Managers.Pipelines.BasePipeline.RolePipelineProcessor.Process(RolePipelineArgsBase args) --- End of inner exception stack trace --- --- End of inner exception stack trace ---

有没有人见过这个错误,或者知道是什么原因造成的?

+0

以前未见过,但原因是在您的堆栈跟踪中; “C:\ Sitecore \ Azure \ Data \ AzurePackages(3)DevFabric \ DevFabricLCd01Role01ScBaf20140606110529.cspkg \ roles \ SitecoreWebRole \ approot ...”您可以调整根目录为“C:\ S \ A”而不是“C :\ Sitecore的\ Azure的“?应该有所帮助。 –

回答

2

根本原因来自堆栈跟踪中的此行:“错误:指定的路径,文件名或两者都过长。完全限定的文件名必须少于260个字符,且目录名必须少于248个字符。“

默认情况下,Sitecore Azure模块在$(dataFolder)\AzurePackages中创建部署包。不幸的是,如果你的数据文件夹已经嵌套得很深,你会很快达到文件夹/文件名限制。

要解决此问题,您可以为您的Azure模块部署包指定一个不同的根文件夹。在Sitecore内容编辑器中,导航至/sitecore/system/modules/azure/[Your-Environment-Name]。在环境项目中有一个名为的文件夹生成文件夹。使用绝对路径指定应创建Azure部署包的位置,例如c:\AzurePacks或更短的东西。