The request was aborted: The request was canceled.

I was trying to open a POST request with WebClient. It correctly gave me a 401 when I tried to use it unauthenticated, but once I tried to use a NetworkCredential, I ended up with the ‘thanks for nothing’ -error ‘The request was aborted: The request was canceled.’ Would be nice to know why.

I tried to debug if the problem was related to an issue with data serialization to Json, but the problem turned out to be a simple one: I was posting data to the wrong Url, which was expecting client data, not product data. So, wrong Json..

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s