login about faq

I'am having trouble debugging null response from a server using http.PostJson2Async. I'am getting responses from other servers just fine, but this specific one is returning null(timeouts). It would help if I could get session log, but http.SessionLogFilename = "E:\httpSessionLog.txt"; does not create any logs.

asked Sep 09 '16 at 07:57

chilkat's gravatar image

chilkat ♦♦

On WinPhone, WinRT, etc. (just like for iOS), a program cannot create files anywhere on the filesystem. You're restricted to your application's data folder. Therefore, one must get the application's data folder and then construct a path from it..

For example:

Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
http.SessionLogFilename = localFolder.Path + @"\sessionLog.txt";


answered Sep 09 '16 at 08:00

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Sep 09 '16 at 07:57

Seen: 514 times

Last updated: Sep 09 '16 at 08:00

Related questions

powered by OSQA