|
.NET
An exception of type 'System.Net.WebException' occurred in System.dll but was not han |
|
Oct 22, 2016 05:36 AM
(This post was last modified: Oct 22, 2016 05:36 AM by He B TeMy.)
You have right there that the 'response' object is = Nothing, what do you expect calling GetResponse() on a 'null' object would do?
Protip: the initial request wasn't performed/failed, show the code and not a popup with the error. (Oct 22, 2016 05:36 AM)He B TeMy Wrote: You have right there that the 'response' object is = Nothing, what do you expect calling GetResponse() on a 'null' object would do? Can you PM me your Skype please? Thanks! :)
I'm currently on a crappy machine running linux with no skype.
The initial request failed, i'd check the website you'er trying to request from the browser itself, and if it works there you'd have ... EDIT: I missed the error code on your print 'cause i'm without my contacts.. anyway, the error is clear, 404 NOT FOUND, your link isn't reachable, re-check.
Oct 22, 2016 08:25 AM
(This post was last modified: Oct 22, 2016 08:29 AM by Ninja.)
(Oct 22, 2016 05:36 AM)He B TeMy Wrote: You have right there that the 'response' object is = Nothing, what do you expect calling GetResponse() on a 'null' object would do? Are you alright? Do you need medical attention? First of all: he is not calling .GetResponse() on a response object, but rather on the HttpWebRequest object. And because he is debugging and an exception was thrown the response is null. @OP: Put a try catch around it. The WebException instance thrown has a Response property that you can read to a string via a streamreader and you can see what the server responded with. A 404 for account checking can mean a lot of things. Depending on the checking method the 404 can mean the account is available (if you are checking by trying to view a profile page for example). Also, I just love how your project is called TwitterCheck but your variables contain the word "xbox". (Oct 22, 2016 08:25 AM)Ninja Wrote: Are you alright? Do you need medical attention? ups... as i said, no contacts yet, anyway, the rest of my post still stands, 404 can mean more than one thing but he didn't provide any info on the link as i requested. |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [C] by maryousJul 24, 2022 03:35 PM | 0 | 159 |
Jul 24, 2022 03:35 PM Last Post: maryous |
| [C] by LunarManureDec 10, 2020 05:21 PM | 13 | 530 |
Dec 10, 2020 05:21 PM Last Post: LunarManure |
| [C#] by KUi29929Aug 11, 2020 12:09 PM | 1 | 292 |
Aug 11, 2020 12:09 PM Last Post: VisualSoft |


