产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 上传附件报错,提示“不支持给定路径的格式”
Vipzz - 2018/1/3 17:35:51
前台、后台上传附件报错,提示“不支持给定路径的格式”,请教该怎么解决!!!
xiyou - 2018/1/3 17:53:27
把错误截图出来看一下
Vipzz - 2018/1/3 17:58:34
14287

附件: QQ截图20180103175819.jpg
Vipzz - 2018/1/3 18:09:06
回复 2楼xiyou的帖子

xiyou麻烦给看看是什么问题。。。很着急,解决不了
Vipzz - 2018/1/3 19:28:16
回复 2楼xiyou的帖子

xiyou大大,通过测试,只有通过IE浏览器在kindeditor编辑器上传单张图片和附件报错,批量图片上传也可以正常上传,但是使用FF浏览器都是可以正常上传的。请教怎么解决,网站版本是V3.020151204(最后更新日期:2016-08-05).
Vipzz - 2018/1/3 20:19:39
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

不支持给定路径的格式。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.NotSupportedException: 不支持给定路径的格式。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪:

[NotSupportedException: 不支持给定路径的格式。]
   System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +7496095
   System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +278
   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +87
   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +46
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +637
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +61
   System.IO.FileStream..ctor(String path, FileMode mode) +55
   System.Web.HttpPostedFile.SaveAs(String filename) +99
   LitJson.Editor_Upload.ProcessRequest(HttpContext context) +1670
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75



--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.7905; ASP.NET 版本:2.0.50727.7905
Vipzz - 2018/1/4 8:52:14
回复 7楼qq842330359的帖子

试了下不行,将图片或者附件文件放到D盘,上传路径比如:D:/1.JPG。都会报错。
1
查看完整版本: 上传附件报错,提示“不支持给定路径的格式”