title: Exception throws on CreateMap
body: <p>Hi I am trying to add AutoMapper into my app but I seem to have some problems with it in th eintegrationg.HEre is it what I have so far.</p>
  
  <p>In order to not create a direct dependency to Automapper I have created a simple maping for it's most basic functionalities:</p>
  
  <pre><code>public class AutoMapper : IAutoMapper
  {
      public void CreateMap&lt;TFrom, TTo&gt;()
      {
          Mapper.CreateMap&lt;TFrom, TTo&gt;();
      }
  
      public TTo Map&lt;TFrom, TTo&gt;(TFrom data)
      {
          return Mapper.Map&lt;TFrom, TTo&gt;(data);
      }
  }
  </code></pre>
  
  <p>I have created a configuration file:</p>
  
  <pre><code> public class AutoMapperConfig
  {
      private readonly IAutoMapper mapper;
  
      public AutoMapperConfig(IAutoMapper mapper)
      {
          this.mapper = mapper;
      }
  
      public void RegisterMappings()
      {
          mapper.CreateMap&lt;ProductDTO , ProductDataContract&gt;();
      }
  }
  </code></pre>
  
  <p>And have added a call in my Global.Asax:</p>
  
  <pre><code>new AutoMapperConfig(new AutoMapper()).RegisterMappings();
  </code></pre>
  
  <p>I have this two objects beetwen I want to create a mapping:</p>
  
  <pre><code>public class ProductDTO
  {
      public int ProductId { get; set; }
      public int CategoryId { get; set; }
      public int SubcategoryId { get; set; }
      public string Name { get; set; }
      public decimal Price { get; set; }
      public string Description { get; set; }
      public string ImagePath { get; set; }
      public int NumberOfProducts { get; set; }
  }
  
  public class ProductDataContract
  {
      public int ProductId { get; set; }
      public int CategoryId { get; set; }
      public int SubcategoryId { get; set; }
      public string Name { get; set; }
      public decimal Price { get; set; }
      public string Description { get; set; }
      public string ImagePath { get; set; }
      public int NumberOfProducts { get; set; }
  }
  </code></pre>
  
  <p>And in my code I placed this line for testing purposes:<br>
      var products = productCatalogService.GetProducts();
      ProductDTO ceva = products.FirstOrDefault();
      var productsDataContract = mapper.Map(ceva);</p>
  
  <p>THe problem is that whn I run my app I imediatly get an exception in Automapper when trying to CreateMap.Here is the type initialization exception message:</p>
  
  <blockquote>
    <p>This type is not supported on this platform IDictionaryFactory</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>