title: NHibernate - Creating a proxy instance failed (on IIS8 but ok with dev server)
body: <p>I have to work on already developed solution which is using NHibernate (v1.2.1.4000) with SQL Server 2008. </p>
  
  <p>The application is using .NET Framework 2.0 due to Membership authentication and other stuffs.</p>
  
  <p>This is working in Visual Studio - I can debug it, run in. But failed when deployed in IIS (v8.0)</p>
  
  <p>Exception is: </p>
  
  <blockquote>
    <p>Duplicate type name within an assembly.<br>
    HibernateException: Creating a proxy instance failed.   </p>
  </blockquote>
  
  <p>And it occurred whenever database is fetched to get some models.</p>
  
  <p>I have googled on this issue and have some suggestion to use nhiberante (v3.3.x). </p>
  
  <p>But the lots of interfaces and method parameters are different in v3. so it is breaking implementaion of the source code.</p>
  
  <p>Several questions regarding this exist on stackoverflow but no luck yet</p>