title: Having trouble with monodevelop
body: <p>I have just installed monodevelop from ubuntu software centre and created a solution. I am trying to do WebRequest.create(url). But it keeps throwing "The authentication or decryption has failed". What am I doing wrong? If I am not doing anything wrong what should I do to make the above work!</p>
  
  <p>I have searched about this but I couldn't come  up with a solution that will fix my problem!</p>
  
  <p>Here is what I do ...</p>
  
  <pre><code>public static string AccessURL(string url, string postcontent)
      {
          WebRequest request = WebRequest.Create(url);
          request.Method = "POST";
          byte[] byteArray = Encoding.UTF8.GetBytes(postcontent);
          request.ContentType = "application/x-www-form-urlencoded";
          request.ContentLength = byteArray.Length;
          Stream dataStream = request.GetRequestStream();
          dataStream.Write(byteArray, 0, byteArray.Length);
          dataStream.Close();
          WebResponse response = request.GetResponse();
          dataStream = response.GetResponseStream();
          StreamReader reader = new StreamReader(dataStream);
          string responseFromServer = reader.ReadToEnd();
          reader.Close();
          dataStream.Close();
          response.Close();
          return responseFromServer;
      }
  </code></pre>
  
  <p>Thanks in advance!</p>