title: Xamarin Android - Webclient
body: <p>I'm trying to build an app for android (school project (technology)), however, 
  I'm keep getting an error and searching on the internet, gave no answer. So I'm hereby asking in here.</p>
  
  <p>I got an MySQL 5.6 Server up and running, it works. PHP standalone and Xampp for file directory, and everything works fine in browser.  The error occurs on the the arrow sign and exception error is about access (I think). I can upload the PHP files if needed.
  The first one is a button, the second is an event fired when download is complete.</p>
  
  <pre><code>private void LoginButton_Click(object sender, EventArgs e)
      {
          TextView userName = FindViewById&lt;TextView&gt;(Resource.Id.editTextUsername);
          TextView userPass = FindViewById&lt;TextView&gt;(Resource.Id.editTextPassword);
  
          client = new WebClient();
          url = new Uri(@"http://127.0.0.1/memento/accountcheck.php");
          //url = new Uri(@"http://127.0.0.1/memento/phpinfo.php");
  
          /*
          NameValueCollection parameters = new NameValueCollection();
  
          parameters.Add("Username", userName.Text);
          parameters.Add("Password", userPass.Text);
          */
  
          client.DownloadDataCompleted += Client_DownloadDataCompleted;
          client.DownloadDataAsync(url);
  
      }
  
  private void Client_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
      {
          Console.WriteLine(e.Result); // &lt;------
      }
  </code></pre>
  
  <p>EDIT:</p>
  
  <blockquote>
    <p>Unhandled Exception: System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.<br>
    Exception Settings: C++ Exceptions, Common Language Runtime Exceptions, JavaScript Runtime Exceptions, Managed Debugging Assistants &amp; Win32 Exceptions.  </p>
  </blockquote>
  
  <p>Each contain tons of check checkboxes except JavaScript. It contains one "0x80070005 Access is denied".</p>