473,804 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

webdav 400 bad request

Gaz
Hi

I am trying to send a new mail via webdav using the c# example on msdn, when
the following line executes:

PUTResponse = (System.Net.Htt pWebResponse)PU TRequest.GetRes ponse();

I get a "The remote server returned an error: (400) Bad Request." error.

Does anyone know what this could be?

--
It''''''''s all fun and games until someone loses an eye, then it''''''''s
just fun and games that you can''''''''t see!
Nov 19 '05 #1
2 2870
put try catch around to catch the exception and look at the inner exception
(maybe will give you more detail).

"Gaz" wrote:
Hi

I am trying to send a new mail via webdav using the c# example on msdn, when
the following line executes:

PUTResponse = (System.Net.Htt pWebResponse)PU TRequest.GetRes ponse();

I get a "The remote server returned an error: (400) Bad Request." error.

Does anyone know what this could be?

--
It''''''''s all fun and games until someone loses an eye, then it''''''''s
just fun and games that you can''''''''t see!

Nov 19 '05 #2
Gaz
The inner exception contained nothing, I'm guessing as this example is from
MSDN and is supposed to work it must be something to with the way we have
our exchange server setup. We do have Outlook Web Access running on there
fine so I don't see why WebDav should fail (unless there are some omissions
in the MSDN example).
--
It''''''''s all fun and games until someone loses an eye, then it''''''''s
just fun and games that you can''''''''t see!
"Craig" wrote:
put try catch around to catch the exception and look at the inner exception
(maybe will give you more detail).

"Gaz" wrote:
Hi

I am trying to send a new mail via webdav using the c# example on msdn, when
the following line executes:

PUTResponse = (System.Net.Htt pWebResponse)PU TRequest.GetRes ponse();

I get a "The remote server returned an error: (400) Bad Request." error.

Does anyone know what this could be?

--
It''''''''s all fun and games until someone loses an eye, then it''''''''s
just fun and games that you can''''''''t see!

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2731
by: Andrew James | last post by:
All, I've been trying to find a generic WebDAV library (possibly with the extra versioning extensions) in Python for a project I'm developing with mod_python. Ideally, I'm looking for one which which wraps around the XML and lets you instantiate classes for each request, like: req = PropFindRequest(myRequestText) resp = PropFindResponse(files) I've found two possibilities so far:
2
4987
by: rbt | last post by:
Has anyone used pure python to upload files to a webdav server over SSL? I have no control over the server. I can access it with all of the various webdav GUIs such as Konqueror, Cadaver, etc. by using a URL like this: webdavs://dav.hostname.com/user_name/uploads My goal is to upload files automatically with a python script. The server requires authentication over SSL which I can do with urllib2 like this:
0
1689
by: drasticp | last post by:
I want to create a custom webdav server by implementing IHttpHandler in my own class and firing it via IIS 6.0 Wildcard Application Maps. I have written my HttpHandler class implementing IHttpHandler. In the ProcessRequest method, I simply write a line to the Application Event Log stating what verb was requested. It doesn't work with a wildcard application map and a WebDav request. If I configure an extension specific map (.test for...
0
2058
by: SimpleSimple | last post by:
My company has an IIS 5, ASP.net intranet site that contains documents for employee use. The files are of various types (most often Office) and are stored in blob fields in a SQL2000 database. The organizational structure of the files is virtual and is managed by the database. We find it clunky that in order to manage these documents, the user must download the document, make changes, save the file locally and reupload via a web form...
7
4873
by: Steve Drake | last post by:
All, I am doing a WEBDAV request and I want to pass the users Credentials to the webdav server, eg some code like : Request.Credentials = CredentialCache.DefaultCredentials; This does not work, as I get AUTH FAIL, but if I pass the user name and password by using :
0
1236
by: Shaike | last post by:
We are trying to develop a webdav server side componenet that runs under the context of the IIS. This component suppose to expose a logical structures that stored in a DB as webdav folders/files structure. I implemented HttpHandler ,and installed it in a simple virtual directory. I also configured this handler to respond to all of the verbs (web.config + IIS wild card map).
1
2113
by: Brian Pearson | last post by:
Does anyone know of an ASP.NET solution for handling WebDav requests? I want to be able to trap WebDav requests in an ASP.NET module (so that I can do some custom authentication), then call into an HttpHandler so that the request can be processed. It seems to be that once the request is directed into ASP.NET, I can't do anything with it (ie - only IIS can handle webdav requests in it's filter/isapi extension or whatever). btw - if...
4
7964
by: John Smith | last post by:
Hey folks, I'm trying to communicate with our Exchange server using WebDav to get the User's personal contacts folder. Works fine if I hardcode their username and password (obviously not an acceptable solution), but when I use Integrated Authentication I get "(401) Unauthorized". I've got <identity impersonate="true" /> and I've got <authentication mode="Windows" />, and I've set up IIS to use Windows Authentication. I know this...
0
1471
by: Alex Radice | last post by:
Hello, We have an application that has a WebDAV interface which office applications (and other applications which understand WebDAV) can use to open and edit documents. We are having a problem with MS Word (and Excel, haven't tested any other apps) misinterpreting the responses from the WebDAV. The sequence of events is as follows:
1
7501
by: =?Utf-8?B?QWxleCBSYWtvdg==?= | last post by:
Hi, I work at a webdav server. And i try to use Word as a webdav client. But I have strange problem. For some files Word sends LOCK command and works with them well. But for others it doesn't do it. My server responses on OPTION command. But it doesn't help. Maybe someone can clerify the question how to tell Word if the document can be opened not in read-only mode
0
9710
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10593
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.