PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

上传附件报错,提示“不支持给定路径的格式” [复制链接]

1#
前台、后台上传附件报错,提示“不支持给定路径的格式”,请教该怎么解决!!!
分享 转发
TOP
2#

把错误截图出来看一下
TOP
3#

QQ截图20180103175819.jpg (, 下载次数:0)

(2018/1/3 17:59:48 上传)

QQ截图20180103175819.jpg

TOP
4#

回复 2楼xiyou的帖子

xiyou麻烦给看看是什么问题。。。很着急,解决不了
TOP
5#

回复 2楼xiyou的帖子

xiyou大大,通过测试,只有通过IE浏览器在kindeditor编辑器上传单张图片和附件报错,批量图片上传也可以正常上传,但是使用FF浏览器都是可以正常上传的。请教怎么解决,网站版本是V3.020151204(最后更新日期:2016-08-05).
TOP
6#

“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

不支持给定路径的格式。
说明: 执行当前 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
TOP
7#

回复 7楼qq842330359的帖子

试了下不行,将图片或者附件文件放到D盘,上传路径比如:D:/1.JPG。都会报错。
TOP
发新话题 回复该主题