Referencing DLL's Natively in .NET Application
I am running an application written in C# in VS 2013. I am trying to reference the DLL's CrystalDecisions.Enterprise.Framework and CrystalDecisions.Enterprise.InfoStore. They are 64 bit DLL's, the file version is 22.214.171.124. My machine is running Windows 7, 64 bit. When I reference these DLL's in my application and run it in VS IDE, I get the following error:
Could not load file or assembly 'BusinessObjects.Enterprise.Sdk' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Does anyone have any tips as to how to correctly reference these DLL's in a .NET application?
I am trying to run code that looks as follows to get a serialized session:
SessionMgr session_mgr = new SessionMgr();
EnterpriseSession session = session_mgr.Logon(userName, password, server, auth);
string session_str = session.SerializedSession;
string SessionURL = HttpUtility.UrlEncode(session_str);
Also, is there some other way to get a serialized session, i.e can it be done through a RESTFul services command?