System.Data Reference Problem

  • Thread starter Thread starter Paul [Paradise Solutions]
  • Start date Start date
P

Paul [Paradise Solutions]

Scenario:

Windows Project created with two forms frm1 and frm2. frm2 accesses a
database and self populates 2 combo boxes.

When happy with operation of frm2, add a new project to the solution and
move frm2 to new project. Add references to sqlce, system.data,
system.data.common



Problem:
Project now complains that "Namespace or type 'Data' in the
project-level Imports 'System.Data' cannot be found."

Adding "Imports System.Data" to the form does not cure this, and it only
occurs after the reference to System.Data is added. If I run the
project, I get warnings that there were build erors, but the project
still deploys to PDA fine, and runs AND successfully carries out DB look
up and combo box population.


Any input would be apprieciated on how to clear the Namespace error.


Many thanks


Paul
 
Why is it whena problems been bugging you for ages, you only find the
answer AFTER you click post....

Found the problem - even though I had moved frm2 to the second project
and then removed the all the database-type references from the first
project (as they are no longer needed), there was still an entry for
System.Data under Project->Properties->Common Properties->Imports


Dag nam it...

Paul
 
Back
Top