cannot map from one entity to another automapper exception throwing?
<p>I have tried to get from resources from database and tried to map to another model class but was unable to do .and it is showing an automapper exception.</p>

<blockquote>
  <p>Trying to map
  RM.Easicreate.Data.Entities.Resource
  to
  RM.Easicreate.Core.DataContracts.ResourceDataContract.
  Exception of type
  'AutoMapper.AutoMapperMappingException'
  was thrown.</p>
</blockquote>

<p>My code looks like this.</p>

<pre><code>Resource res= resources.FirstOrDefault();
ResourceDataContract r = Mapper.Map&lt;Resource, ResourceDataContract&gt;(res);
</code></pre>

<p>and i have configured automapper in my bootstaper like this</p>

<pre><code>        Mapper.CreateMap&lt;Resource, ResourceDataContract&gt;();
        Mapper.AssertConfigurationIsValid();
</code></pre>

<p>but it seems to be not working? why is that so?</p>
