title: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
body: <pre><code>if (!advertismentsDao.AdvertisementUrlExist(ad.Url))
  {
      if (!advertismentsDao.AdvertisementExist(ad.Price, 
                                               ad.HollidayDuration, 
                                               ad.Name, 
                                               ad.Description, 
                                               ad.City, 
                                               ad.Area, 
                                               ad.Country,
                                               ad.Agency))
      {
         advertismentsDao.Save(ad);
         advertismentsDao.CommitChanges(); 
      }
  }
  </code></pre>
  
  <p>gives me:</p>
  
  <blockquote>
    <p>InnerException = Unable to evaluate
    expression because the code is
    optimized or a native frame is on top
    of the call stack.</p>
  </blockquote>
  
  <p>error is wheren i got here CommitChanges(). I google but i can not solve my problem</p>