title: entity framework error in .net
body: <p>I am trying make a join in entity framework and display datas in a label but i get an error like "FileLoadException was unhandled by user code".Here is my codebehind:</p>
  
  <pre><code>protected void display() {
  
           AspNetOrnekEntities entity = new AspNetOrnekEntities();
           var everything = (from insan in entity.insanlar
                             join renk in entity.renkler on insan.SevdigiRenk equals renk.Renk
                             select new
                             {
  
                                 kisiId = insan.KisiId,
                                 renkId = renk.RenkId
  
                             });
  
           foreach (var data in everything)
           {
               Label1.Text += data.kisiId + "   " + data.renkId + "&lt;br/&gt;";
           }
      }
  </code></pre>
  
  <p>I call "display" in page_load and error comes from that line. I think problem occurs because of first line of the display method because I turned all other lines into comments and problem still occurs. I am using Model1.edmx as connection.</p>