Click here to Skip to main content
14,326,294 members

Web Development

 
PinnedHow to get an answer to your question Pin
Chris Maunder4-Sep-10 2:25
adminChris Maunder4-Sep-10 2:25 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:40
adminChris Maunder12-Jul-09 22:40 
QuestionWeb Site Log Out in Mozilla Firefox on Post back Pin
Siddharth Chudasama10-Oct-19 22:52
memberSiddharth Chudasama10-Oct-19 22:52 
QuestionHow to get uploaded file in ajax Post Pin
KGr283-Oct-19 4:17
memberKGr283-Oct-19 4:17 
AnswerRe: How to get uploaded file in ajax Post Pin
Richard Deeming3-Oct-19 4:33
mveRichard Deeming3-Oct-19 4:33 
GeneralRe: How to get uploaded file in ajax Post Pin
KGr283-Oct-19 4:39
memberKGr283-Oct-19 4:39 
GeneralRe: How to get uploaded file in ajax Post Pin
Richard Deeming3-Oct-19 4:52
mveRichard Deeming3-Oct-19 4:52 
GeneralRe: How to get uploaded file in ajax Post Pin
KGr283-Oct-19 7:12
memberKGr283-Oct-19 7:12 
QuestionCall To test Web API Fails Pin
Kevin Marois1-Oct-19 10:35
professionalKevin Marois1-Oct-19 10:35 
AnswerRe: Call To test Web API Fails Pin
Afzaal Ahmad Zeeshan4-Oct-19 22:42
mveAfzaal Ahmad Zeeshan4-Oct-19 22:42 
httpResponse.EnsureSuccessStatusCode();
This line will always raise an exception is the response is not a success status code—which falls in the range of 200-299 of HTTP status code. Now for your second case, why 401, that means that the server is expecting to read an authentication credential (username/password, bearer token, etc.) which was not passed with the request.

One more thing that I want to highlight here is that, localhost is not 192.168.51.66. You might be confusing that every request will be forwarded to localhost before being terminated. If a server is listening on, 192.168.51.66, then it will only be listening to requests on that particular IP address. Same goes for port, and protocol (HTTP, FTP, etc.) and I believe that is why you are getting 401.

Solution is either keep using the IP address that you are being provided with, or map the service to listen to HTTP requests on localhost (127.0.0.1) to solve this problem.

HttpResponseMessage.IsSuccessStatusCode Property (System.Net.Http) | Microsoft Docs
HttpResponseMessage.EnsureSuccessStatusCode Method (System.Net.Http) | Microsoft Docs
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

QuestionThe type or namespace name 'EigenObjectRecognizer' could not be found (are you missing a using directive or an assembly reference?) Pin
Fatemehhhhh29-Sep-19 20:55
memberFatemehhhhh29-Sep-19 20:55 
AnswerRe: The type or namespace name 'EigenObjectRecognizer' could not be found (are you missing a using directive or an assembly reference?) Pin
Richard MacCutchan29-Sep-19 22:54
protectorRichard MacCutchan29-Sep-19 22:54 
QuestionIIS issues for Core webAPi deployment Pin
Simon_Whale25-Sep-19 2:31
professionalSimon_Whale25-Sep-19 2:31 
AnswerRe: IIS issues for Core webAPi deployment Pin
Richard Deeming25-Sep-19 2:51
mveRichard Deeming25-Sep-19 2:51 
GeneralRe: IIS issues for Core webAPi deployment Pin
Simon_Whale25-Sep-19 4:09
professionalSimon_Whale25-Sep-19 4:09 
Questionbutton and Align Pin
davidovic12323-Sep-19 4:07
memberdavidovic12323-Sep-19 4:07 
AnswerRe: WooCommerce - Buy Product button and Align buttons Pin
Mycroft Holmes23-Sep-19 12:53
memberMycroft Holmes23-Sep-19 12:53 
QuestionNeed a custom code for WordPress to show big image as a profile image Pin
Brett Alvarez20-Sep-19 1:56
professionalBrett Alvarez20-Sep-19 1:56 
QuestionWhat does Microsoft Use to make Office Online? Pin
Peter Moore - Chicago12-Sep-19 8:03
memberPeter Moore - Chicago12-Sep-19 8:03 
AnswerRe: What does Microsoft Use to make Office Online? Pin
Richard MacCutchan12-Sep-19 11:23
protectorRichard MacCutchan12-Sep-19 11:23 
GeneralRe: What does Microsoft Use to make Office Online? Pin
Peter Moore - Chicago12-Sep-19 11:31
memberPeter Moore - Chicago12-Sep-19 11:31 
GeneralRe: What does Microsoft Use to make Office Online? Pin
Richard MacCutchan12-Sep-19 11:34
protectorRichard MacCutchan12-Sep-19 11:34 
AnswerRe: What does Microsoft Use to make Office Online? Pin
#realJSOP16-Sep-19 1:59
mve#realJSOP16-Sep-19 1:59 
AnswerRe: What does Microsoft Use to make Office Online? Pin
ZurdoDev16-Sep-19 3:46
professionalZurdoDev16-Sep-19 3:46 
QuestionNeed a Specific Button (for MAP linking) Pin
Member 120802013-Sep-19 9:12
memberMember 120802013-Sep-19 9:12 

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.