Click here to Skip to main content
15,892,253 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionReading external application field value... Pin
just3ala226-May-08 3:00
just3ala226-May-08 3:00 
AnswerRe: Reading external application field value... Pin
Derek Viljoen27-May-08 18:05
Derek Viljoen27-May-08 18:05 
AnswerRe: Reading external application field value... Pin
Tariq A Karim9-Jun-08 16:52
Tariq A Karim9-Jun-08 16:52 
QuestionIssue debugging the class liabrary Pin
Vipul Mehta26-May-08 2:42
Vipul Mehta26-May-08 2:42 
AnswerRe: Issue debugging the class liabrary Pin
Derek Viljoen27-May-08 18:07
Derek Viljoen27-May-08 18:07 
QuestionError:The request failed with HTTP status 400: Bad Request Pin
AshSah26-May-08 0:25
AshSah26-May-08 0:25 
AnswerRe: Error:The request failed with HTTP status 400: Bad Request Pin
paresh_joe26-May-08 2:55
paresh_joe26-May-08 2:55 
AnswerRe: Error:The request failed with HTTP status 400: Bad Request Pin
Peter Josefsson Sweden27-May-08 13:52
Peter Josefsson Sweden27-May-08 13:52 
The error just means that the web service for some reason didn't like the request. Specifically, it may mean that the web service:

a) can't understand your request (bad headers/bad encoding/bad data).

b) has failed when processing your data (due to a bug or bad data).

c) doesn't accept your request (invalid data, too much data or whatever other rule it may enforce).

So as you see, the reasons can be infinitely many, and there is no simple answer. You may be doing something wrong, the web service may be doing something wrong or there may be a problem on the way (corrupting the request).

It's almost impossible to debug without carefully analyzing the entire raw request (including HTTP headers) and/or debugging the web service itself. If you didn't create the web service you could try sending the request to a fake web service you create and capture it there - then you have to analyze it for correctness somehow (proof-reading it or building a program that analyzes it) and finally, if you're certain it's correct, contact the ones responsible for the web service.

I think I remember seeing it intermittently in .NET 1.1 due to some bug or quirk (the request headers sometimes were incorrectly generated by the framework). Both the web service and consumer were built in .NET, and the error occured before my (web service) code even saw the request. Spent hours of fruitless debugging before I found the bug on Google... Haven't heard about that in a long time though - I think it got fixed in an early service pack.

Peter the small turnip

(1) It Has To Work. --RFC 1925[^]

AnswerRe: Error:The request failed with HTTP status 400: Bad Request Pin
Peter Josefsson Sweden27-May-08 13:54
Peter Josefsson Sweden27-May-08 13:54 
QuestionHow to determine vs 2005 sp1 is installed Pin
Mekong River26-May-08 0:18
Mekong River26-May-08 0:18 
AnswerRe: How to determine vs 2005 sp1 is installed Pin
Laddie26-May-08 1:48
Laddie26-May-08 1:48 
GeneralRe: How to determine vs 2005 sp1 is installed Pin
Mekong River26-May-08 15:28
Mekong River26-May-08 15:28 
AnswerRe: How to determine vs 2005 sp1 is installed Pin
Ed.Poore26-May-08 2:32
Ed.Poore26-May-08 2:32 
GeneralRe: How to determine vs 2005 sp1 is installed Pin
Mekong River26-May-08 15:29
Mekong River26-May-08 15:29 
QuestionDifference between WriteLine and Print methods of Debug class? Pin
Igor Merabishvili25-May-08 21:44
Igor Merabishvili25-May-08 21:44 
AnswerRe: Difference between WriteLine and Print methods of Debug class? Pin
leppie25-May-08 22:13
leppie25-May-08 22:13 
GeneralRe: Difference between WriteLine and Print methods of Debug class? Pin
Igor Merabishvili25-May-08 23:57
Igor Merabishvili25-May-08 23:57 
GeneralRe: Difference between WriteLine and Print methods of Debug class? Pin
leppie26-May-08 4:24
leppie26-May-08 4:24 
QuestionError : The request failed with HTTP status 400: Bad Request. Pin
paresh_joe25-May-08 21:20
paresh_joe25-May-08 21:20 
AnswerRe: Error : The request failed with HTTP status 400: Bad Request. Pin
Peter Josefsson Sweden27-May-08 13:55
Peter Josefsson Sweden27-May-08 13:55 
GeneralFunny with Decimal Type Pin
Brady Kelly25-May-08 4:56
Brady Kelly25-May-08 4:56 
GeneralRe: Funny with Decimal Type Pin
darkelv25-May-08 20:24
darkelv25-May-08 20:24 
GeneralRe: Funny with Decimal Type Pin
Brady Kelly25-May-08 23:48
Brady Kelly25-May-08 23:48 
GeneralRe: Funny with Decimal Type Pin
supercat927-May-08 14:53
supercat927-May-08 14:53 
GeneralRe: Funny with Decimal Type Pin
Brady Kelly27-May-08 23:38
Brady Kelly27-May-08 23:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.