cancel
Showing results for 
Search instead for 
Did you mean: 

PCo Agent SDK - The type or namespace name 'SAP' could not be found

janbuchmann
Contributor
0 Kudos

Hi everyone

I am trying to create a new PCo custom agent, using the PCo Agent SDK's wizard. I've followed the steps given in this (excellent) document:

http://scn.sap.com/docs/DOC-32671

However, when building the agent in Visual Studio 2012, I get compiler errors:

The type or namespace name 'SAP' could not be found (are you missing a using directive or an assembly reference?)

I've checked the references. SAPs Connectivity.Framework is referenced in my solution. I've also checked this document, but don't seem to be getting anywhere..

What am I missing?

Thanks & regards

Jan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

the message may indicate a version mismatch between the version of the .Net Framework you are using and the one which has been used to build the Connectivity Framework assembly. Verify that the .Net Framework version your project is targeting matches the one required by the SDK (see the Release Notes of the Plant Connectivity version you are using).

In addition, verify that the reference is a valid one (the path is correct etc -- an invalid reference is usually indicated by a yellow icon.

Also make sure you are using the full version of the .Net Framework, not the client version.

Regards,

Thomas

gcaldi
Discoverer
0 Kudos

Hello Thomas,

we finally solved.

.Net version mismatch  was exactly our problem!

Thank you

Gabriele

gcaldi
Discoverer
0 Kudos

Hi Jan,

I'm faced with the same issue: did you found a solution?

Thank you & regards

Gabriele

janbuchmann
Contributor
0 Kudos

Hi Gabriele

I'm afraid I didn't get any further with this and eventually gave up.

Regards

Jan