title: 'namespace used like a type' error when converting XAML to HTML
body: <p>Coders, I am trying to convert a XAML string to HTML using a library I found <a href="https://docs.microsoft.com/en-us/archive/blogs/matt/converting-rtf-to-html" rel="nofollow noreferrer">here</a> , but I have a problem with creating a new instance of the object that would let me use the library. I already added a reference to the library in my Asp.net project and I would like to use it in a WCF file.</p>
  <p>The problem is that whenever I try to instantiate a new object with the new keyword, I get an error that says:</p>
  <blockquote>
  <p>'MarkupConverter' is a 'namespace' but is used like a 'type'.</p>
  </blockquote>
  <p>Here is my code, notice that I am creating a new object just like the example shown in the library link above, please help:</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Runtime.Serialization;
  using System.ServiceModel;
  using System.Text;
  using System.Web.Services;
  using System.Net.Mail;
  using System.ServiceModel.Activation;
  using System.Data.SqlClient;
  using MarkupConverter;
  
  namespace AspPersonalWebsite
  {
      [ServiceContract(Namespace = &quot;&quot;)]
      [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
      public class Service1 //: IService1
      {
          private string connectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings[&quot;ApplicationServices&quot;].ConnectionString;
          private IMarkupConverter markupConverter;        
  
          [OperationContract]
          public string convertXAMLToHTML(string XAMLtext)
          {
              string htmlText = &quot;&quot;;
              markupConverter = new MarkupConverter(); /*PROBLEM IS HERE*/
              htmlText = markupConverter.ConvertXamlToHtml(XAMLtext);
              return htmlText;
          }
      }
  }
  </code></pre>