title: Xamarin Resource ID #0x7f050000 type #0x12 is not valid
body: <p>I read few similar threads here, but none of the solutions works. I am pretty new in Xamarin Programming.<br>
  This is the code that creates the problem:</p>
  
  <pre><code>try
  {
      var combo = FindViewById&lt;Spinner&gt;(Resource.Id.spinner);
      ArrayAdapter adapter = new ArrayAdapter(this, Guardian.Resource.Id.spinner, gdm.Porgram_names);
      combo.Adapter = adapter;
  }
  catch (Exception exc)
  {
  
  }
  </code></pre>
  
  <p>My app crashes and this message appears (try catch block dosen't catch it):</p>
  
  <blockquote>
    <p>Android.Content.Res.Resources+NotFoundException: Resource ID #0x7f050000 type #0x12 is not valid</p>
  </blockquote>
  
  <p>When i comment this line: <code>combo.Adapter=adapter;</code> the program doesn't crash.</p>
  
  <p>Any idea what is wrong?</p>