Cannot get HttpClient to work for Windows Phone 8.1

I am new to development and trying to create a basic Windows Phone App that uses HttpClient with no success. I keep getting an unhandled exception. I get the same error whether using my own code or the downloadable sample RSS Reader:
'RSSreader.exe' (CoreCLR: DefaultDomain): Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\a8b3abf4-4e2b-49c8-ac1e-14aadef54813VS.Debug_AnyCPU.Steven\RSSreader.exe'. Symbols loaded.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.RUNTIME.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\WinMetadata\Windows.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.RUNTIME.INTEROPSERVICES.WINDOWSRUNTIME.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.DIAGNOSTICS.DEBUG.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.COLLECTIONS.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.THREADING.TASKS.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\System.Runtime.WindowsRuntime.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.XML.XDOCUMENT.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.XML.LINQ.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\SYSTEM.XML.NI.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols.
A first chance exception of type 'System.Exception' occurred in mscorlib.ni.dll
'RSSreader.exe' (CoreCLR: .): Loaded 'C:\windows\system32\en-US\System.Xml.debug.resources.DLL'. Module was built without symbols.
A first chance exception of type 'System.Xml.XmlException' occurred in SYSTEM.XML.NI.DLL
The program '[2432] RSSreader.exe' has exited with code 0 (0x0).
I am not sure what I am missing. I have searched but cannot seem to find the root cause of my issue. Any assistance would be greatly appreciated.

A first chance exception of type 'System.Xml.XmlException' occurred in SYSTEM.XML.NI.DLL
That line is your culprit. Whichever method is calling your code to parse the XML from the feed, wrap it in a try/catch.
In your catch, do a System.Diagnostics.Debug.WriteLine(e.Message);
If you're running this from the emulator, check whether your emulator has internet connectivity. If you're running from your phone, check the same.
If all else fails, you can try adding the HttpClient NuGet libraries to your project (This MAY fix the issue if it's not already loaded)

Similar Messages

  • Can't get itunes to work for windows xp 64 bit

    I can't get itunes to work for windows xp 64 bit. It won't even download.

    These are the Windows requirements according to the iTunes dpownload site http://www.apple.com/uk/itunes/download/http://:
    Windows XP Service Pack 2 or later; 32-bit editions of Windows Vista, Windows 7 or Windows 8
    64-bit editions of Windows Vista, Windows 7 or Windows 8 require the iTunes 64-bit installer
    xp 64 bit is not mentioned but it doesn't seem to be supported for the latest ITunes so it seems that you're out of luck.

  • I cannot get imessage to work for me on my ipod touch 4th generation when i sign in with apple ID then it says confirm email and it keeps on going and going and going and never stops

    i cannot get imessage to work for me on my ipod touch 4th generation when i sign in with apple ID then it says confirm email and it keeps on going and going and going and never stops

    Try:
    iOS: Troubleshooting FaceTime and iMessage activation

  • Activesync not working for Windows Phone with certificate

    We have a new Exchange Server 2013 setup and using activesync.  We have setup a policy to require simple password and to send an email to provision a device when it connects.  Activesync is setup to use self signed certificates,  this was
    tested first on the Ipad.  Certificate installed entered the settings and the device appeared in the quarantined devices list awaiting to be approved.  This was also done on the Iphone and worked. 
    When putting the same certificate on the windows phone device it errored with there is a problem with {as.domain-name.net} and does not appear in quarantined devices screen.
    I tested again with another Ipad and an android device and they work without an issue.  Tested with a Windows RT device and got the same issue.  If I look in the IIS log files I can see the windows device making a connection then when I presume
    to be the error 500 at the end of the line. 
    This is not a user issue as I can use the same user on the various devices.  The windows devices just do not want to connect.  We have looked at the certificate but if it works for apple and android devices why does it not work for windows? 
    Is there any additional security settings that need to be turned on or off for windows phones?  Is there something specific on the certificate what windows devices need that others ignore?

    I did inital think it might be a widows phone issue but there are no other settings for me to use.  I have also tested using a windows 8 surface and I get the same issue.
    I have raised the event log level on the exchange server to expert and I have seen 2 messages when I try to connect. 
    I get Event ID 1100:  Exhcnage ActiveSync device requests for your uses are being blocked.  This problme frequently occurs when HTTP OPTIONS method is not allowed.
    I know it is allowed as the test exchange connectivity worked and passed that test.
    The other error Event ID 1309 ASP.NET warning.  Part of the exception messge is DeviceTypeMissingOrInvalid
    I have come across a comment that says for certificates to work you need to use windows intune or SCCM which we don't have.  Do we know if this is true? 

  • WPS54GU2 printing to parallel printer with Windows 7 64-bit-cannot get it to work for the life of me

    Hello,
    I am having the worst difficulties getting the WPS54GU2 to print to a HP Laserjet 4L printer. I know that the general communication is working as I am able to print a test page from the 
    I have the IP address correct for the print server (in my case it is 192.168.1.103) and is set statically in the print server setup.
    I have it working fine on an XP box The port name configured on the XP machine is LK89A0B5_P1.
    The software that comes with the WPS print server will not install on Windows 7 so the address/port/queue must
    be set up manually.
    I have tried the link from Cisco's KB that shows how to configure the print sever:
    http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=69efd80e2ea44d948fea2365d3e0c9eb_Configuring_TCP_I...
    however this does not work and the print job either gets stuck in the print queue, or it shows busy/error in the print queue.
    I have also tried suggestions on this forum that say not to create a TCP/IP port but instead use LPR port.
    Can someone please give me the solution that will work. I have heard people say to use L1 for the queue name, or P1, or LP1
    or lp1. I cannot spend much more time on this before I give up and look for a different print server that will work with both parallel and USB printers.
    Thanks for help/suggestions on this.
    Mike

    sometimes it needs the device- specific drivers to get it to work; especially that you have a 64- bit OS.
    the print server is already connected to the network, right? what is its IP address? check if the computer can ping that IP by going to start> search> cmd> ping 192.168.1.78 (change this to the correct IP address). if your computer can ping the print server then you can setup LPR printing to get your printing jobs done. click on the link below for more info.
    Setting up LPR Printing on Windows 7

  • HT201413 I cannot get home sharing working, using windows 8 . does anyone have a solution?

    i cannot get home sharing on itunes to work using windows 8. I also have Norton 360 and have unstalled and disabled it but still cannot get home sharing to operate so that i can use the remote APP on my ipad to control music through the house. does anyone have a solution or experienced similar issue?

    Hi Pat,
    Yes I marked the question as Assumed Answered. I needed to move on. I have never taken part in a forum and couldn’t wait any longer for any input so not wanting anyone to waste the time answering me, I marked the question as assumed answered. I guess this was the wrong thing to do and I apologize to the forum.
    I did go another route and loaded and enlarged the photo in Photoshop Elements, Then cropped the photo to the area I needed to reprint. I probably should have done this in the first place!
    Again, my apology to the forum for my lack of patience in waiting for a reply.
    Diane Harris
    Sent from Windows Mail

  • Cannot get camera to work for the first time.

    I cannot get the camera to work . I have the IPad2 and just tried to use it this week.   Have tried turning on &off and nothing is working. The video will not come on either. Any ideas.

    Have you tried closing the Camera app completely and seeing if it works when you re-open the app ? From the home screen (i.e. not with Camera 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Camera app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset (if that wasn't what you meant by turning the iPad off and on) : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • HT1386 i am currently up to date i think or so my phone tells me, however I cannot get airplay to work on my phone, any clues please..Gary

    Hi all, I have a new Iphone 5, currently so i believe up to date.. however cannot get airplay facility.. Could anyone advise how I get it, colleuges say it should be there automatically, but no joy!!

    tried all the things on help pages, still no good?  I travelled in a new car today, a friend paired his phone to the car and it played music via bluetooth/air play button, i paired my phone and got jack diddly nowt.... would it be worth taking my phone to a local Apple store??? frustration is killing me.

  • Cannot get Boot Camp drivers (for Windows XP) installed

    I've partitioned my Time Machine HD for the 32GB/FAT format of Windows XP/Home Edition w/SP2. The installation of Windows proceeded OK. However, after installing Windows, ejecting the W-Install disc, and inserting my MAC OS X Leopard disc, the "setup.exe" file does not open. If I start up in Windows, I cannot open the Opt. Disc drawer since the BC drivers are not installed; if I insert the OS X disc in the drawer, then restart in Windows, the "setup.exe." file does not open.
    Where do I go from here to install the Boot Camp drivers for Windows? These drivers are needed for 'normal' Windows operation, and are required in order to install the Boot Camp update. Any suggestions would be appreciated.

    Hi David,
    while you are in Windows and have the Leopard DVD inserted, can you access the content of it using the Windows Explorer ?
    or maybe this hint on MacOSXHints can help you access the Windows Content of your Leopard DVD while in OSX http://www.macosxhints.com/article.php?story=20080708145453136
    If so, you can try to copy the Windows Content onto a USB Memory Stick and use it to install the drivers.
    Good Luck
    Stefan

  • Saved passwords i cannot get it to work for one site help

    i cannot get this to save a site or username and password and cannot figure out why

    The website may be using autocomplete=off to prevent Firefox from saving the name and password.
    You can remove autocomplete=off with a bookmarklet to make Firefox save the name and password.
    *http://kb.mozillazine.org/User_name_and_password_not_remembered
    *Saved Password Editor: https://addons.mozilla.org/firefox/addon/saved-password-editor/

  • Can't get Extreme to work for me

    I bought an Airport Extreme in May and just cannot get it to work for me. It most likely has to do with my settings as it seems complicated for me. My ISP refuses to help me other than providing me with some router/IP info. They claim they have had problems with Airport Extremes (anti-Mac) and do not know how to help me and I should contact Apple. My ISP also claims they have been successful with their few Mac clients using NetGear and they can help with that.
    This is depressing to me because I am loyal Mac user and have never had problems with any Mac product. But I can't figure this one out on my own. I do not see phone support for the Airport Extreme and I feel exhausted by this.
    Is anyone is willing to walk me (could be painful) through this or willing to buy my Extreme and I will concede to my pro-Windows ISP. In the end, all I want is one of my computers to be online wireless.
    Sigh.
    Jeanine
    PowerMac G5, dual-2.0 ghz Mac OS X (10.4)

    Hi Jeanine,
    Don't assume that it is just a question of anti-Macness. There are legitimate reasons why an ISP (or a business) decides not to support this weird device. It goes against most of what is considered reasonable by the leading manufacturers, but hey, it's Apple. They usually don't care about that as long as they have loyal customers who still trust Apple.
    I'd say that the critical settings are in the Internet tab. Assuming you have your computer connected to the airport using an Ethernet cable, and that you have the Admin Utility running, go to the Internet Tab and make sure that:
    1. Connect using: Ethernet
    2. Configure IP - It depends. You say that your ISP has given you some router/IP info. In that case, you need to choose "Manually" and enter all the fields following this setting. Otherwise, they might have told you that you will be assigned a DHCP address, and in this case choose "Using DHCP." The last two boxes ("Domain Name" and "DHCP ID") are usually not utilized.
    3. For "Ethernet WAN Port" Automatic should suffice, but in my case, I had to force it to 100 Full Duplex or otherwise wouldn't work. Go figure!
    4. For Connection Sharing, most probably you'll have "Share a public IP address" but if the ISP gives you a set of addresses, you may need to choose "Distribute a Range..." Not probable, though.
    Leave the other two tabs as default, but make sure that your computer has DHCP enabled.
    Following this steps won't give you a fully working wireless network (we have not configured anything yet) but at least should give you a working state for computers connected via Ethernet wire. We can take the next step then.
    Good luck. This router (and the iPhone for similar reasons) are going to make may Apple loyal customers rethink future purchases. It has certainly happened to me.
    Paco

  • AIR SDK for Windows Phone 7?

    Hi
    I'd like to know if Adobe is working with Microsoft to get an AIR SDK for Windows Phone 7 so developers were able to compile ActionScipt projects into WinMo7 applications.
    Thanks

    Hi
    I'd like to know if Adobe is working with Microsoft to get an AIR SDK for Windows Phone 7 so developers were able to compile ActionScipt projects into WinMo7 applications.
    Thanks

  • I have an app  which also downloaded in pc but cannot get it to work?

    i have an app  which also downloaded in pc but cannot get it to work?

    Windows 7 operating system....constantly pops up with a window that says I am not on the internet and can't register my product....obviously I am on the internet at this moment because I am posting on an online forum.   I downloaded the software four times now, after uninstalling it three times.  I downloaded XI Pro. 

  • TS4212 can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.  I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work

    can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.   what do I do
    I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work.
    I am really struggling

    Thanks
    someone named  Eloisa   she gave me   a phone no.   or visit hp.com/uk
    cannot make head nor tale of it all.  I am old.  and find everything hard to undertstand

  • Skype for Windows Phone idea: Make it work

    [Topic title updated by moderator to be more descriptive. Original topic title was: "Re: Submit: Great Skype for Windows Phone ideas"]
    Oh, here's a brilliant idea - make it work. Simple enough?
    Fix resuming the app. Make it fast enough so I can actually pick up a call.
    Decrease battery drain. Currently when using skype my battery usage sometimes reaches 65% per hour. It's not even ridiculous anymore.
    I'm not asking much, I don't need calling skype-skype a pleasant experience. Just make it work without requiring 1Gb/s bandwidth and quad-core processor with 8GB RAM.
    Last but not least - make SkypeOut not a theoretical feature to lure people into paying subscription but something that actually works at least half the time.
    I'm really not asking anything fancy like deleting some old messages or other things people mention. Just the basics of a communication app.
    The funny thing is that we all know you don't give a s* about what we are putting here. Nobody's gonna read it anyway.
    It's sad. I used to like skype, before the mobile revolution. Now... Just keep it going the way it's going and in two, three years you'll be a history like Blackberry or AOL

    As for those "smaller improvements" I think everyone will agree with me that they are way too small, and they take much too long. I mean, seriously, 65% per hour battery drain! I am yet to find an app, ANY app that would be even remotely close to your "achievements". With improvements that small and slow I guess in 5 years skype will be using only 30% battery every hour. If I'm not expecting to be next to a power outlet within an hour or two I'm not even trying to use skype anymore. Exactly the same applies to resuming the app. I understand that there are some improvements but honestly improving by 50 ms is not an improvement that any user would appreciate. Again, in this matter skype is probably the worst or one of the worst among all communication apps in WP store. And it's not like it's a new app. Those "improvements" (exactly the same) have been announced from the very beginning and yet they are virtually unnoticable for an average user. Like I said before, sometimes it's impossible to answer a call because it takes too long to resume skype. And any improvement that doesn't make it possible is not really an improvement, from a user's point of view.
    I really hope this changes and next fixes will be dramatic.
    Now, SkypeOut problem. I cannot agree that it has anything to do with a carrier I'm trying to call. Here's why:
    1. I'm calling the same people from desktop app, from metro app on my tablets and from my phone. Desktop - no problems whatsoever, Metro - pretty much good as well, Windows Phone - unusable most times.
    2. When I try to call people from phone - it doesn't work at all, I tether a laptop/tablet to the phone, thus virtually using the same connection (ATT) - magically it starts working perfectly fine.
    3. I'm calling landlines and all cellular carriers in Poland. Problems are with ALL of them using Windows Phone, and there are no problems using any other platform while calling exactly the same phone numbers. So, unless you have a problem with Poland in general, it wouldn't make any sense to blame the carriers.
    4. For some reason, sometimes it actually works on the phone. But only sometimes.
    Also, I noticed this behavior on Windows Phone:
    1. SkypeOut works bad no matter what internet connection I'm using, whether it's 2Mb/s or 100Mb/s it's just a disaster (most of the times), and whether it's wifi or cellular.
    2. Video calls quality is very poor also on both - wifi and cellular.
    3. Voice calls are actually not that bad. Assuming that I can start the app before they hang up
    I'm using Lumia 920 so I hope this phone is not too weak for your app. If it is - you're killing yourself limiting only to owners of the very newest phones packed with the best hardware available.

Maybe you are looking for

  • I need help to repair my external hard drive

    (1) My External Hard Drive finally stopped  working. Whenever I tried to use it, I would only get variants of, "Time Machine couldn't complete the Backup to "My Passport for Mac", or "The backup disc is not available". (2) "No problem," I thought. "T

  • Printing out a report in PDF format

    Hi, A colleague and myself have been converting an existing system for our customer from the traditional client/server architecture to a web-deployed system on 10g application server. I have been converting the reports from report 3.5 to reports 10g.

  • My Photoshop will not open.

    Whenever I go to open up Adobe Photoshop (64bit or otherwise) it will load up for a second then crash the next. It doesnt give me error reason why only says it has stopped working and it can't detect a problem so it closes. I have tried to uninstall

  • Streaming internet to TV using WET610N

    I have a Linksys E4200 Router - (great!) I have hooked up a Linksys WET610N Bridge to my Sony BluRay and have a good connection.  (I have updated the Sony firmware so know it works)  Now, how can I configure this setup to allow me to stream movies an

  • Crystal reports and Bex

    Hi all, First of all I want to let you know that I am new to SAP. So please excuse me if I am not perfect with my question. I have a user who wants to replace all the crystal reports they have with the Bex reports. I got the table names and the hardc