Reputation: 11
I am developing smart-device project then I've been encountered these errors:
Error 1 The type 'System.Data.Common.DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Users\king.a\Documents\Visual Studio 2008\Projects\SmartDeviceProject4\SmartDeviceProject4\Form1.cs 46 13 SmartDeviceProject4
Error 2 The type 'System.Data.Common.DbCommand' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Users\king.a\Documents\Visual Studio 2008\Projects\SmartDeviceProject4\SmartDeviceProject4\Form1.cs 49 13 SmartDeviceProject4
Error 3 The type 'System.Data.Common.DbDataReader' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Users\king.a\Documents\Visual Studio 2008\Projects\SmartDeviceProject4\SmartDeviceProject4\Form1.cs 52 13 SmartDeviceProject4
I've been looking for the app.config to add reference to assembly, but i couldn't find it.
Upvotes: 1
Views: 509
Reputation: 8508
This procedure should help you add the reference
In Visual Studio look for the Solution Explorer window.
Upvotes: 0