title: getting exception System.Runtime.Remoting.ObjectHandle while using XMLWorkerHelper in asp.netcore 2.0 with Itextsharp
body: <p>I am trying to use ItextSharp to generate pdf but I am getting a exception on </p>
  
  <pre><code>XMLWorkerHelper.GetInstance().ParseXHtml(writer, pdfDoc, sr);
  
  MissingMethodException: Method not found: 'System.Runtime.Remoting.ObjectHandle System.Activator.CreateInstance(System.String, System.String)'.
  </code></pre>
  
  <p>What am I missing?</p>
  
  <pre><code>string data = await GetHtml(model.Review.PublishUrl);
                      using (MemoryStream stream = new MemoryStream())
                      {
                          StringReader sr = new StringReader(data);
                          Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 100f, 0f);
                          var writer = PdfWriter.GetInstance(pdfDoc, stream);
                          pdfDoc.Open();
  
                          XMLWorkerHelper.GetInstance().ParseXHtml(writer, pdfDoc, sr);
                          pdfDoc.Close();
                          return File(stream.ToArray(), "application/pdf", "Grid.pdf");
                      }
  </code></pre>