Note that there are some explanatory texts on larger screens.

plurals
  1. POHttpWebRequest times out calling WCF Service using mono on Raspberry Pi
    primarykey
    data
    text
    <p>I have installed mono on a raspberry pi model a, running Devian. I can use an HTTPWebRequest to call a regular web page, but calling a WCF service causes the call to timeout. Here is the code:</p> <pre><code>using System; using System.Net; using System.IO; using System.Text; namespace TestWeb { class MainClass { public static void Main (string[] args) { var r = (HttpWebRequest)WebRequest.Create ("https://eventboardstaging2.falafel.com/ConferenceService2/ConferenceListEx?dummy=634924037818870000"); r.Method = "POST"; r.ContentType = "application/json; charset=utf-8"; string json = "{\"PrivateLabel\":\"\",\"UserID\":\"46bff210-95fb-4292-8fe8-e3d99c86b97d\",\"UtcCutoff\":null}"; byte[] data = Encoding.UTF8.GetBytes(json); using (var req = r.GetRequestStream()) { req.Write(data, 0, data.Length); using (var response = r.GetResponse()) { using (StreamReader sr = new StreamReader(response.GetResponseStream())) { var s = sr.ReadToEnd (); Console.WriteLine (s.Substring(1,100)); } } } } } } </code></pre> <p>Stack trace is</p> <pre><code>Unhandled Exception: System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in &lt;filename unknown&gt;:0 at System.Net.HttpWebRequest.GetResponse () [0x00000] in &lt;filename unknown&gt;:0 at TestWeb.MainClass.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in &lt;filename unknown&gt;:0 at System.Net.HttpWebRequest.GetResponse () [0x00000] in &lt;filename unknown&gt;:0 at TestWeb.MainClass.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload