cancel
Showing results for 
Search instead for 
Did you mean: 

SAPNCO3 Problems

Former Member
0 Kudos

I am running on a W7 64 bit machine. On it I have 4.0 of .net; Visual C# 2010 Express

I have downloaded and installed the SAP_DotConnector3_X64 for .NET 4.

I am trying to compile and execute the Tutorial that comes with this version.

In doing so, I've added a reference to sapnco.dll and sapnco_utils.dll (which oddly enough were installed in the c:\windows\Program File (x86) directory, i.e. the 32 bit program directory.

When I build the tutorial project, I get two warnings

1) Referenced Assembly sapnco_utils.dll targets a different processor

2) Referenced assemply sapnco.dll targets a different processor

When I try to execute the tutorial, I get a BadImageFormatException .... Could not load file od assemly 'sapnco_utils, version.... . An attempt was made to load a program with an incorrect forrmat'.

Any help will be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check your project properties.

"Build" > "Platform Target": set to "Any CPU".

"Application" > "Target framework": set to u201C.NET framework 4u201D

This should solve the warnings..

Former Member
0 Kudos

You are probably right. However that feature is not available in Visio Studio Express. I guess I have to shell out the $ to get the Professional version.

Answers (0)