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 at 07:57

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


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";

link

answered Sep 09 at 08:00

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×1
×1

Asked: Sep 09 at 07:57

Seen: 132 times

Last updated: Sep 09 at 08:00

Related questions

powered by OSQA