title: NHibernate config problem
body: <p>I feel so stupid for posting this but I can't see what's wrong here. I wanted to see hot Nhibernate works, than I got in the site, downloaded it, and was following the quick start tutorial but doing some chances - I'm using MySql and it's not a Product but a User in my project, but whatever... </p>
  
  <p>When I run the test for schema generation I get an error, here is the error info:  </p>
  
  <pre>TestCase 'Uniflu.Domain.Tests.GenerateSchema_Fixture.Can_generate_schema'  
  failed: NHibernate.MappingException : Could not compile the mapping document:  
  Uniflu.Domain.Mappings.Usuario.hbm.xml  
  ----> NHibernate.HibernateException : Could not instantiate dialect class     
  NHibernate.Dialect.MySqlDialect  
  ----> System.TypeLoadException : Could not load type NHibernate.Dialect.MySqlDialect.
  Possible cause: no assembly name specified.  
  em NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)  
  em NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)  
  em NHibernate.Cfg.Configuration.ProcessMappingsQueue()  
  em NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name)  
  em NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly)  
  em NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)  
  E:\Projetos\Uniflu\Uniflu\Uniflu.Domain\Tests\GenerateSchema_Fixture.cs(17,0): em Uniflu.Domain.Tests.GenerateSchema_Fixture.Can_generate_schema()  
  --HibernateException  
  em NHibernate.Dialect.Dialect.InstantiateDialect(String dialectName)  
  em NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props)  
  em NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)  
  --TypeLoadException  
  em NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name, Boolean throwOnError)  
  em NHibernate.Util.ReflectHelper.ClassForName(String name)  
  em NHibernate.Dialect.Dialect.InstantiateDialect(String dialectName)  
  
  0 passed, 1 failed, 0 skipped, took 5,37 seconds (NUnit 2.5).  </pre>
  
  <p>My hibernate.cfg.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;  
  &lt;hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"&gt;  
  &lt;session-factory name="Test"&gt;  
  &lt;property name="connection.driver_class"&gt;NHibernate.Driver.MySqlDataDriver&lt;/property&gt;  
  &lt;property name="connection.provider"&gt;NHibernate.Connection.DriverConnectionProvider&lt;/property&gt;  
  &lt;property name="dialect"&gt;NHibernate.Dialect.MySqlDialect&lt;/property&gt;  
  &lt;property name="connection.connection_string"&gt;Server=Athenas;Database=uniflu;Uid=alaor;Pwd=test;&lt;/property&gt;  
  &lt;property name="show_sql"&gt;true&lt;/property&gt;  
  &lt;/session-factory&gt;  
  &lt;/hibernate-configuration&gt;  
  </code></pre>
  
  <p>My user class:  </p>
  
  <pre><code>using System;  
  using System.Collections.Generic;  
  using System.Linq;  
  using System.Text;  
  
  namespace Uniflu.Domain  
  {  
      public class Usuario  
      {  
          public virtual Guid Id { get; set; }  
          public virtual String Nome { get; set; }  
          public virtual String Email { get; set; }  
          public virtual String Senha { get; set; }  
          public virtual String Dica { get; set; }  
          public virtual DateTime DataCriado { get; set; }  
          public virtual DateTime UltimoAcesso { get; set; }  
          public virtual Boolean Ativo { get; set; }  
      }  
  }  
  </code></pre>
  
  <p>My Usuario.hbm.xml:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;  
  &lt;hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  
                 assembly="Uniflu.Domain"  
                 namespace="Uniflu.Domain"&gt;  
  &lt;class name="Usuario"&gt;  
  &lt;id name="Id"&gt;  
  &lt;generator class="guid" /&gt;  
  &lt;/id&gt;  
  &lt;property name="Nome" /&gt;  
  &lt;property name="Email" /&gt;  
  &lt;property name="Senha" /&gt;  
  &lt;property name="Dica" /&gt;  
  &lt;property name="DataCriado" /&gt;  
  &lt;property name="UltimoAcesso" /&gt;  
  &lt;property name="Ativo" /&gt;  
  &lt;/class&gt;  
  &lt;/hibernate-mapping&gt;  
  </code></pre>
  
  <p>My solution name is Uniflu, my project is Uniflu.Domain, it's a class library project, the directory structure is like this:  </p>
  
  <p>Uniflu<br>
  -> Uniflu.Domain<br>
  -> -> Properties<br>
  -> -> References<br>
  -> -> Mapping<br>
  -> -> -> Usuario.hbm.xml<br>
  -> -> Tests<br>
  -> -> -> GenerateSchema_Fixture<br>
  -> -> hibernate.hbm.xml<br>
  -> -> Usuario.cs  </p>
  
  <p>Guyz I can't see what I'm doing wrong... I really need some light!! Please!!</p>
  
  <p>Thankz in advance.</p>