Hi! Maybe you're right. Whe I tryed to exec this code:
Code:
Configuration cfg = new Configuration();
cfg.AddAssembly("CS"); /// error here!!!
I got the error (innermessage above):
Quote:
{"Could not load file or assembly 'CS' or one of its dependencies. O sistema não pode encontrar o arquivo especificado.":"CS"}
[System.IO.FileNotFoundException]: {"Could not load file or assembly 'CS' or one of its dependencies. O sistema não pode encontrar o arquivo especificado.":"CS"}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "Could not load file or assembly 'CS' or one of its dependencies. O sistema não pode encontrar o arquivo especificado."
Source: "mscorlib"
StackTrace: " at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)\r\n at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)\r\n at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)\r\n at System.Reflection.Assembly.Load(String assemblyString)\r\n at NHibernate.Cfg.Configuration.AddAssembly(String assemblyName)"
TargetSite: {System.Reflection.Assembly nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.Assembly, System.Threading.StackCrawlMark ByRef, Boolean, Boolean)}
In this case, which file is missing? Because in this example, "CS" is the namespace where I typed my mapped class (code above):
Code:
using System;
namespace CS
{
public class User
{
private string id;
private string userName;
private string password;
private string emailAddress;
private DateTime lastLogon;
public User() { }
private string Id
{
get { return id; }
set { id = value; }
}
private string UserName
{
get { return userName; }
set { userName = value; }
}
private string Password
{
get { return password; }
set { password = value; }
}
private string EmailAddress
{
get { return emailAddress; }
set { emailAddress = value; }
}
private DateTime LastLogon
{
get { return lastLogon; }
set { lastLogon = value; }
}
}
}
What Am I doing wrong???
Thanks a lot,
TTYMan
ttyman@hotmail.com