Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP NCO3 Won't Execute Tutorial


I've posted a similar problem before. However this time I am using a different version of Visual Studio. Any suggestions would be welcome.

Here's my current environment:

  • Windows 7 Home Premium - 64 Bit

  • Intel(R) Core(TM) 2Duo CPU T9400 @ 2.53GHz 2.53GHz

  • Visual Studio 2010 Ultimate (not the Express version I was using before)

  • .NET 4

  • SAP .Net Connector 3.0 for x64 - Installed to c:\Program Files (x86)\SAP\SAP_DotNetConnector3_x64 (Not sure why it installed here and not the 64 bit path)

  • Tutorial Project downloaded from Service Market Place Connectors

  • Added Reference to sapnco.dll and sapnco_utils.dll in the Tutorial Project

When I run the tutorial example, I receive this message shortly after I try to execute.

System.BadImageFormatException was unhandled

Message=Could not load file or assembly 'sapnco_utils, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. An attempt was made to load a program with an incorrect format.


FileName=sapnco_utils, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23

FusionLog==== Pre-bind state information ===

LOG: User = wardell-PC\wardell

LOG: DisplayName = sapnco_utils, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23


LOG: Appbase = file:///C:/Users/wardell/Documents/Visual Studio 2010/Projects/SAPNCo3_64bit/SAPNCo3_64bit/bin/Debug/

LOG: Initial PrivatePath = NULL

Calling assembly : SAPNCo3_64bit, Version=, Culture=neutral, PublicKeyToken=null.


LOG: This bind starts in default load context.

LOG: Using application configuration file: C:\Users\wardell\Documents\Visual Studio 2010\Projects\SAPNCo3_64bit\SAPNCo3_64bit\bin\Debug\SAPNCo3_64bit.vshost.exe.Config

LOG: Using host configuration file:

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.

LOG: Post-policy reference: sapnco_utils, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23

LOG: Attempting download of new URL file:///C:/Users/wardell/Documents/Visual Studio 2010/Projects/SAPNCo3_64bit/SAPNCo3_64bit/bin/Debug/sapnco_utils.DLL.

ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.


at SAP.Middleware.Connector.Examples.Tutorial.Main(String[] args)

at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)

at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()


Former Member
Former Member replied

Check the properties of the project [Targert framework:. NET Framework 4]

Ok, check that the assembly (sapnco.dll, sapnco_utils) are correct (64 - 32) bits

If the inconsistency arises in the proposed installation, verify that the sale of properties [Target: Corresponding 86x, 64]

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question