title: could not load type 'EDMNearClass.ProductRepository.DesTagliaP'
body: <p>I have solution with two project: one webApplication and one ClassLibrary with edmx and all entity framework logic. This work fine, but if I try to use strongly typed data, it begin the problem.</p>
  
  <p>in code behind I use this function:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.ModelBinding;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using EDMNearClass;
  
  namespace WebSite
  {
      public partial class dettaglio_prodotto : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
          {
              //Response.Write(Page.RouteData.Values["DESCRIZIONE"]);
          }
  
          public IQueryable&lt;ProductRepository.DesTagliaP&gt; GetProduct_Taglie([RouteData("Id")] string itemId)
          {
              decimal ProdId = decimal.TryParse(itemId, out ProdId) ? ProdId : 0;
              ProductRepository pr = new ProductRepository();
              var myEnts = pr.taglieProdottiDesGetbyUId(1,ProdId).AsQueryable();
              return myEnts;
          }
      }
  }
  </code></pre>
  
  <p>In aspx part I use this code:</p>
  
  <pre><code>&lt;asp:Repeater ID="rpTaglie" runat="server" ItemType="EDMNearClass.ProductRepository.DesTagliaP" SelectMethod="GetProduct_Taglie"&gt;
      &lt;ItemTemplate&gt;
          &lt;div class="quanitybox"&gt;
              &lt;label for="qty"&gt;&lt;%# Item.Codice %&gt;&lt;/label&gt;
              &lt;asp:TextBox runat="server" ID="quantita" CssClass="input-text qty" /&gt;
          &lt;/div&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>Intellisense working and help me to choise proprerty of <code>EDMNearClass.ProductRepository.DesTagliaP</code>, but at run time i receive error.
  If I use <code>Eavl("Codice")</code> and I remove <code>ItemType="EDMNearClass.ProductRepository.DesTagliaP"</code>, all work fine.</p>
  
  <p>I checked on /bin folder and EDMNearClass.dll EDMNearClass.pdb are present and updated.</p>
  
  <p>How can I solve this problem?</p>