Gortok wrote:
You have the following in your using; directives?
using System.Data;
If that doesn't work, go to 'References' under your solution explorer and make sure System.Data is added as a reference in your project.
Yes, I have the "using System.Data;". As for the 'References', the project already had a reference to
C:\vs8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll .
I just did a couple of other tests.
Test #1 extracted the public key tokens. The Compact Framework framework System.Data.dll
C:\>sn -Tp
C:\vs8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42
--snip--
Public key token is 969db8053d3322ac
versus the desktop framework System.Data.dll
C:\>sn -Tp C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42
--snip--
Public key token is b77a5c561934e089
Test #2 I tried replacing the Compact Framework System.Data.dll with the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll. That resolved the error but introduced lots of others just like it.
Does NHibernate support the .NET Compact Framework?
Brian