Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"Could not load file or assembly" error when compiling a SDK application for Microsoft Dynamics SL


View products that this article applies to.

Symptoms

When you compile a Microsoft Dynamics SL Software Development Kit (SDK) application on a 64 bit workstation, you receive the following error:

Could not load file or assembly 'Solomon.Kernel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.


↑ Back to the top


Cause

Because Microsoft Dynamics SL is 32bit code, applications that use the Microsoft Dynamics SL Software Development Kit (SDK) have to target the "x86" CPU.

↑ Back to the top


Resolution

In Microsoft Visual Studio set the advanced compile options to target the "x86" CPU. To do this, follow these steps:

  1. Open the SDK project in Microsoft Visual Studio.
  2. From the Project menu, select Properties.
  3. On the Compile tab, click Advanced Compile Options...
  4. On the Target CPU: combo-box, select "x86".
  5. Save the project and recompile the application.


↑ Back to the top


Keywords: kbmbsmigrate, kbmbspartner, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2685036
Revision : 2
Created on : 2/3/2017
Published on : 2/3/2017
Exists online : False
Views : 318