如何解决“不支持给定路径的格式";错误 [英] how to resolve the "the given path's format is not supported" error

查看:197
本文介绍了如何解决“不支持给定路径的格式";错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我创建了一个用于在任何人上传图像时存储图像的文件夹.它可以正常工作.但是问题是,当我在ftp中上传相同内容时,它会显示类似给定路径"的错误不支持格式".我该如何解决呢?



谢谢您,

In my project i have created a folder for storing images when anyone uploads the images.it works fine.but problem is that when i upload the same thing in ftp ,it is displaying an error like "the given path''s format is not supported".How can i get through from that.



Thank you,

推荐答案

您将必须使用 ^ ],因为WebRequest不允许模式ftp:
You''ll have to use the class FtpWebRequest[^] as WebRequest does not allow for the schema ftp: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^].
That will resolve your issues.

Regards,


这篇关于如何解决“不支持给定路径的格式";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆