Skip to Content
avatar image
Former Member

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 12.0.0.0.  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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 01, 2015 at 10:00 PM

    So I made a change to the setting "Use 64 bit version of IIS express" in Visual Studio and got past the original error.  Now it is doing this:

    Could not load file or assembly 'BusinessObjects.Enterprise.Sdk.ZipLib.netmodule' or one of its dependencies. The specified module could not be found.


    I checked the BIN directory for the project and it does contain the following files:

    BusinessObjects.Enterprise.Sdk.dll

    BusinessObjects.Enterprise.Sdk.ebus.netmodule

    BusinessObjects.Enterprise.Sdk.fssl.netmodule

    BusinessObjects.Enterprise.Sdk.netmodule

    BusinessObjects.Enterprise.Sdk.Ssl.netmodule

    BusinessObjects.Enterprise.Sdk.ZipLib.netmodule

    BusinessObjects.Foundation.Logging.dll

    As well as:

    CrystalDecisions.Enterprise.Framework.dll

    CrystalDecisions.Enterprise.InfoStore.dll

    CrystalDecisions.Enterprise.PluginManager.dll

    I don't have CrystalDecisions.Enterprise.PluginManager.dll currently referenced in the project. 


    Any ideas about the error message?

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Dan,

      Someone in your company is the SMP administrator so you'll have to ask around and get them to create an account for you to log cases.

      Home | SAP Support Portal

      I think the problem is you can't simply point to the location of the Assemblies, they must be installed using one of our redist packages on the application server or WEB server.

      A call and case to look over your configuration would be helpful...

      Don