Tried to rebuild project and now I am getting...
Quote:
------ Test started: Assembly: AutomatedGrantSuggestions.DataAccess.Tests.dll ------
Test 'AutomatedGrantSuggestions.Core.Tests.GrantMasterIntegrationTest.TestRetrieveHibernateFromID' failed: Test method AutomatedGrantSuggestions.Core.Tests.GrantMasterIntegrationTest.TestRetrieveHibernateFromID threw exception: NHibernate.MappingException: Could not compile the mapping document: AutomatedGrantSuggestions.Core.Mapping.hbm.xml ---> NHibernate.MappingException: persistent class AutomatedGrantSuggestions.Core.Organization, AutomatedGrantSuggestions.Core not found ---> System.IO.FileNotFoundException: Could not load file or assembly 'AutomatedGrantSuggestions.Core' or one of its dependencies. The system cannot find the file specified.=== Pre-bind state information ===
LOG: User = Jackie-VPC\Jackie
LOG: DisplayName = AutomatedGrantSuggestions.Core
(Partial)
LOG: Appbase = file:///C:/Users/Jackie/Desktop/jgleason_gss/trunk/AutomatedGrantSuggestions.DataAccess.Tests/bin/Debug
LOG: Initial PrivatePath = NULL
Calling assembly : NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Jackie\AppData\Local\Temp\tmpD2D5.tmp
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
.
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name, Boolean throwOnError)
at NHibernate.Util.ReflectHelper.ClassForName(String name)
at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForFullNameChecked(String fullName, String errorMessage)
--- End of inner exception stack trace ---
at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForFullNameChecked(String fullName, String errorMessage)
at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForNameChecked(String name, Mappings mappings, String errorMessage)
at NHibernate.Cfg.XmlHbmBinding.ClassBinder.BindClass(XmlNode node, IDecoratable classMapping, PersistentClass model, IDictionary`2 inheritedMetas)
at NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(XmlNode node, HbmClass classSchema, IDictionary`2 inheritedMetas)
at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(XmlNode parentNode, IDictionary`2 inheritedMetas)
at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
--- End of inner exception stack trace ---
at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
at NHibernate.Cfg.Configuration.ProcessMappingsQueue()
at NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument document)
at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name)
at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name)
at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly)
at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)
Classes\HibernateUtils.cs(98,0): at AutomatedGrantSuggestions.DataAccess.HibernateUtils.OpenSession()
Classes\HibernateUtils.cs(34,0): at AutomatedGrantSuggestions.DataAccess.HibernateUtils.getGrant(String grantId)
GrantMasterIntegrationTest.cs(20,0): at AutomatedGrantSuggestions.Core.Tests.GrantMasterIntegrationTest.TestRetrieveHibernateFromID()
Test 'AutomatedGrantSuggestions.Core.Tests.GrantMasterIntegrationTest.TestAddHibernateFromExisting' failed: Test method AutomatedGrantSuggestions.Core.Tests.GrantMasterIntegrationTest.TestAddHibernateFromExisting threw exception: NHibernate.MappingException: Could not compile the mapping document: AutomatedGrantSuggestions.Core.Mapping.hbm.xml ---> NHibernate.MappingException: persistent class AutomatedGrantSuggestions.Core.Organization, AutomatedGrantSuggestions.Core not found ---> System.IO.FileNotFoundException: Could not load file or assembly 'AutomatedGrantSuggestions.Core' or one of its dependencies. The system cannot find the file specified.=== Pre-bind state information ===
LOG: User = Jackie-VPC\Jackie
LOG: DisplayName = AutomatedGrantSuggestions.Core
(Partial)
LOG: Appbase = file:///C:/Users/Jackie/Desktop/jgleason_gss/trunk/AutomatedGrantSuggestions.DataAccess.Tests/bin/Debug
LOG: Initial PrivatePath = NULL
Calling assembly : NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Jackie\AppData\Local\Temp\tmpD2D5.tmp
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
.
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name, Boolean throwOnError)
at NHibernate.Util.ReflectHelper.ClassForName(String name)
at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForFullNameChecked(String fullName, String errorMessage)
--- End of inner exception stack trace ---
at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForFullNameChecked(String fullName, String errorMessage)
at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForNameChecked(String name, Mappings mappings, String errorMessage)
at NHibernate.Cfg.XmlHbmBinding.ClassBinder.BindClass(XmlNode node, IDecoratable classMapping, PersistentClass model, IDictionary`2 inheritedMetas)
at NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(XmlNode node, HbmClass classSchema, IDictionary`2 inheritedMetas)
at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(XmlNode parentNode, IDictionary`2 inheritedMetas)
at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
--- End of inner exception stack trace ---
at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
at NHibernate.Cfg.Configuration.ProcessMappingsQueue()
at NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument document)
at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name)
at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name)
at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly)
at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)
Classes\HibernateUtils.cs(98,0): at AutomatedGrantSuggestions.DataAccess.HibernateUtils.OpenSession()
Classes\HibernateUtils.cs(34,0): at AutomatedGrantSuggestions.DataAccess.HibernateUtils.getGrant(String grantId)
GrantMasterIntegrationTest.cs(26,0): at AutomatedGrantSuggestions.Core.Tests.GrantMasterIntegrationTest.TestAddHibernateFromExisting()
0 passed, 2 failed, 0 skipped, took 15.68 seconds (MSTest 9.0).
This all worked before I moved the project :-(