I am building a REST WCF Application in top of Windows Azure. In localhost I am able to connect and use SQL Azure with NHibernate nicely, but whenever I try to move the application to Windows Azure, it cannot load the required DLLs for NHibernate to work properly.
I've seen forums where it says that this problem might occur if the NHibernate DLLs were compiled with x86 target, and since Windows Azure runs on x64, I tried to modify the target of my build to x64 (although I am running Windows 7 x86).
The problem it is displaying is
The server encountered an error processing the request. The exception message is 'Unable to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle' during configuration of proxy factory class. Possible causes are: - The NHibernate.Bytecode provider assembly was not deployed. - The typeName used to initialize the 'proxyfactory.factory_class' property of the session-factory section is not well formed. Solution: Confirm that your deployment folder contains one of the following assemblies: NHibernate.ByteCode.LinFu.dll NHibernate.ByteCode.Castle.dll'. See server logs for more details.
Have anyone has seen this error before? How do I solve this?