title: Could not load type 'iTextSharp.text.html.HtmlParser' from assembly 'itextsharp, Version=5.5.5.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'
body: <p><a href="http://www.dotnetjalps.com/2013/06/Creating-PDF-with-ASP-Net-MVC-and-RazorPDF.html" rel="nofollow">see this link</a> converting html to pdf I got this version error in webconfig let some genius find and solve the qustion.</p>
  
  <p>My Model</p>
  
  <pre><code> public class Customer
    {
      public int CustomerID { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
    }
  </code></pre>
  
  <p>My Controller this is normal code</p>
  
  <pre><code> public ActionResult Index()
      {
          List&lt;Customer&gt; customers = new List&lt;Customer&gt;();
  
          for (int i = 1; i &lt;= 10; i++)
          {
              Customer customer = new Customer
              {
                  CustomerID = i,
                  FirstName = string.Format("FirstName{0}", i.ToString()),
                  LastName = string.Format("LastName{0}", i.ToString())
              };
              customers.Add(customer);
          }
          return View(customers);
      }
  </code></pre>
  
  <p>this is for pdf convert controller </p>
  
  <pre><code>public ActionResult PDF()
      {
          List&lt;Customer&gt; customers = new List&lt;Customer&gt;();
  
          for (int i = 1; i &lt;= 10; i++)
          {
              Customer customer = new Customer
              {
                  CustomerID = i,
                  FirstName = string.Format("FirstName{0}", i.ToString()),
                  LastName = string.Format("LastName{0}", i.ToString())
              };
              customers.Add(customer);
          }
  
          return new RazorPDF.PdfResult(customers, "PDF");
      }
  </code></pre>
  
  <p>My webconfig</p>
  
  <pre><code> &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="itextsharp" publicKeyToken="8354ae6d2174ddca" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-5.5.5.0" newVersion="5.5.5.0" /&gt;
    &lt;/dependentAssembly&gt;
  </code></pre>