views:

134

answers:

2

I got a sample snippet code from OpenNETCF and cfAes, but name space definition is missing for some reason. Here is the missing namespace:

using OpenNETCF.Security.Cryptography.NativeMethods;

I tried to add reference for all the OpenNETCF libraries. But didn't work me.

Any thoughts?

Many thanks.

A: 

That is an internal class in the main OpenNETCF.dll assembly. It's not a namespace. Try commenting it out to see if the class compiles.

codekaizen
YepIn addition, using OpenNETCF.Web.Services2.Security.Cryptography doesn't work as well. It says type or namespace 'Web' doesn't exist in name space OpenNETCF.
Kelvin
+1  A: 

Make sure you've got version compatability. A lot of the crypto stuff was in the early versions of the SDF because it was used for WSE and CF 1.0 didn't have much for crypto. As the CF matured and gained crypto and as WSE died and we pulled it out to its own library, we removed a lot of that stuff from the base SDF code base. If you have an old snipped and you're trying to compile against the newer binaries, the underlying calls you're after simply may not be there.

If that's the case, you're probably best served by getting the code for the older SDF (we've got them all available for download - bottom of the page) and pulling out the pieces that you need.

ctacke