WebDav返回Not Found(404)错误

编程入门 行业动态 更新时间:2024-10-26 04:25:45
本文介绍了WebDav返回Not Found(404)错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Hi, I wrote an application(VB.Net) with XmlHttp object (COM) to do some operations in the exchange server. This application works fine. Now , I want to write the same application with HttpRequest(.Net) instead of XmlHttp, but always When I try to get a response from a query, I get the following error : The remote sever returned an error404) Not Found. Here some lines of the application: '***** Save the attachment ******* ' sUrlAttach is the url of an attachment in the exchange         代码块 推荐答案

1)你得到什么错误? 2)您是否检查过相同的项目 - 使用OWA并确保该项目退出? 3)当我们请求/响应时,还验证您是否使用正确的编码来收集URI / URL电话? 4)确认我们获得了正确的URI / URL?5)确认我们是否通过了有效的网络凭证? 注意: ===== 1).Net应用程序不支持MSXML。请参阅我的博文: http ://blogs.msdn/deva/archive/2008/10/23/nutshell-msxml-is-not-supported-in-net-applications.aspx 。使用System.XML并尝试。 2)如果我们获得404,请确保您正确枚举附件。您可以使用 X-MS-ENUMATTS方法 执行此操作。 3)使用GET方法获取附件,而不是直接调用响应流。 如果您有问题仍然让我知道... 希望这有助于。· 1) What error do you get? 2) Have you checked the same item resides in exchange - use OWA and make sure that the item exits?3) Also verify do you use proper encoding to collect URI/URL's when we do request/response calls?4) Verify we get proper URI/URL's?5) Verify that we pass valid network credentials?Note: =====1) MSXML is not supported with .Net applications. Please refer my blogpost: blogs.msdn/deva/archive/2008/10/23/nutshell-msxml-is-not-supported-in-net-applications.aspx. Use System.XML and try that.2) If we're getting 404 then, make sure that you properly enumerate the attachments. You can use  X-MS-ENUMATTS Method to do this.3) Use GET method to get the attachments, instead of calling the response stream directly.still if you have issue let me know...Hope this helps.

更多推荐

WebDav返回Not Found(404)错误

本文发布于:2023-11-16 15:02:58,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   WebDav

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!