【发布时间】:2014-02-18 13:26:32
【问题描述】:
在umbraco中导入模板时出现此错误
无法上传文件 System.Exception: 解压扩展时出错... ---> System.IO.PathTooLongException:指定的路径、文件名或两者都太长。全限定文件名必须小于 260 字符,并且目录名称必须少于 248 个字符。 在 System.IO.PathHelper.GetFullPathName() 在 System.IO.Path.NormalizePath(字符串路径,布尔全校验,Int32 最大路径长度)在 System.IO.FileStream.Init(字符串路径,FileMode 模式、FileAccess 访问、Int32 权限、Boolean userRights、FileShare 共享,Int32 bufferSize,FileOptions 选项,SECURITY_ATTRIBUTES secAttrs,字符串 msgPath,布尔 bFromProxy,布尔 useLongPath, 布尔检查主机)在 System.IO.FileStream..ctor(字符串路径,FileMode 模式、FileAccess 访问、FileShare 共享、Int32 bufferSize) 在 umbraco.cms.businesslogic.packager.Installer.UnPack(String zipName) 在 umbraco.cms.businesslogic.packager.Installer.Import(字符串输入文件) --- 内部异常堆栈跟踪结束 --- 在 umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) 在 umbraco.presentation.developer.packages.Installer.uploadFile(对象 发件人,EventArgs e)
【问题讨论】:
标签: c# asp.net-mvc asp.net-mvc-4 umbraco umbraco6