The type or namespace 'FluentNHibernate' could not be found (are you missing a using directive or an assembly reference?
I am using Visual Studio 2010(VS2010); and trying to use NHibernate, but couldnt because of the above error. The namespace(s) already added but somehow it does not read it. Though, my other another project, Visual Studio 2008, with similar FluentNHibernate.dll added to it works fine.
And "Output" window had following information
warning MSB3253: The referenced assembly "FluentNHibernate" could not be resolved because it has a dependency on "System.Data.SqlClient, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.
The project was targeting .Net Framework 4 Client Profile by default; I tried changing to .Net Framework 4, worked!