I added the web reference to the empty project. It worked ok.
I don't know about dllimports. Although I haven't added any myself we're
using some third party components. OpenNetCF compact framework controls and
InTheHand ADO database classes. The InTheHand ADO classes are new ones we
haven't used before, we've used the OpenNetCF ones on a previous project
with no worries.
As I wrote, it just started happening yesterday. The project's been in
development for maybe 3-4 days.
private void InitializeComponent()
{
this.mnuMain = new System.Windows.Forms.MainMenu();
this.cmdConnect = new OpenNETCF.Windows.Forms.ButtonEx();
this.panel1 = new System.Windows.Forms.Panel();
this.lblLoggedOnAs = new System.Windows.Forms.Label();
this.cmdReceive = new OpenNETCF.Windows.Forms.ButtonEx();
this.cmdReadings = new OpenNETCF.Windows.Forms.ButtonEx();
this.cmdTransmit = new OpenNETCF.Windows.Forms.ButtonEx();
this.lblSiteID = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblTotalReadings = new System.Windows.Forms.Label();
//
// cmdConnect
//
this.cmdConnect.BackColor = System.Drawing.Color.Yellow;
this.cmdConnect.Font = new System.Drawing.Font("Tahoma", 8F,
System.Drawing.FontStyle.Bold);
this.cmdConnect.Location = new System.Drawing.Point(70, 56);
this.cmdConnect.Size = new System.Drawing.Size(100, 23);
this.cmdConnect.Text = "Logon";
this.cmdConnect.Click += new System.EventHandler(this.cmdConnect_Click);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Yellow;
this.panel1.Location = new System.Drawing.Point(10, 92);
this.panel1.Size = new System.Drawing.Size(220, 2);
//
// lblLoggedOnAs
//
this.lblLoggedOnAs.Font = new System.Drawing.Font("Arial", 7F,
System.Drawing.FontStyle.Bold);
this.lblLoggedOnAs.ForeColor = System.Drawing.Color.White;
this.lblLoggedOnAs.Location = new System.Drawing.Point(56, 8);
this.lblLoggedOnAs.Size = new System.Drawing.Size(264, 20);
this.lblLoggedOnAs.Text = "Not established";
//
// cmdReceive
//
this.cmdReceive.BackColor = System.Drawing.Color.Yellow;
this.cmdReceive.Enabled = false;
this.cmdReceive.Font = new System.Drawing.Font("Tahoma", 8F,
System.Drawing.FontStyle.Bold);
this.cmdReceive.Location = new System.Drawing.Point(70, 108);
this.cmdReceive.Size = new System.Drawing.Size(100, 23);
this.cmdReceive.Text = "Receive";
this.cmdReceive.Click += new System.EventHandler(this.cmdReceive_Click);
//
// cmdReadings
//
this.cmdReadings.BackColor = System.Drawing.Color.Yellow;
this.cmdReadings.Enabled = false;
this.cmdReadings.Font = new System.Drawing.Font("Tahoma", 8F,
System.Drawing.FontStyle.Bold);
this.cmdReadings.Location = new System.Drawing.Point(70, 148);
this.cmdReadings.Size = new System.Drawing.Size(100, 23);
this.cmdReadings.Text = "Take readings";
this.cmdReadings.Click += new System.EventHandler(this.cmdReadings_Click);
//
// cmdTransmit
//
this.cmdTransmit.BackColor = System.Drawing.Color.Yellow;
this.cmdTransmit.Enabled = false;
this.cmdTransmit.Font = new System.Drawing.Font("Tahoma", 8F,
System.Drawing.FontStyle.Bold);
this.cmdTransmit.Location = new System.Drawing.Point(70, 232);
this.cmdTransmit.Size = new System.Drawing.Size(100, 23);
this.cmdTransmit.Text = "Transmit";
this.cmdTransmit.Click += new System.EventHandler(this.cmdTransmit_Click);
//
// lblSiteID
//
this.lblSiteID.Font = new System.Drawing.Font("Arial", 7F,
System.Drawing.FontStyle.Bold);
this.lblSiteID.ForeColor = System.Drawing.Color.White;
this.lblSiteID.Location = new System.Drawing.Point(56, 32);
this.lblSiteID.Size = new System.Drawing.Size(268, 20);
this.lblSiteID.Text = "Not established";
//
// label1
//
this.label1.Font = new System.Drawing.Font("Arial", 7F,
System.Drawing.FontStyle.Bold);
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(-4, 8);
this.label1.Size = new System.Drawing.Size(52, 20);
this.label1.Text = "User ID:";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// label2
//
this.label2.Font = new System.Drawing.Font("Arial", 7F,
System.Drawing.FontStyle.Bold);
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(-4, 32);
this.label2.Size = new System.Drawing.Size(52, 20);
this.label2.Text = "Site ID:";
this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// lblTotalReadings
//
this.lblTotalReadings.Font = new System.Drawing.Font("Arial", 7F,
System.Drawing.FontStyle.Bold);
this.lblTotalReadings.ForeColor = System.Drawing.Color.White;
this.lblTotalReadings.Location = new System.Drawing.Point(12, 204);
this.lblTotalReadings.Size = new System.Drawing.Size(216, 20);
this.lblTotalReadings.Text = "Completed readings: none";
//
// FrmMain
//
this.BackColor = System.Drawing.Color.Blue;
this.Controls.Add(this.lblTotalReadings);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.lblSiteID);
this.Controls.Add(this.cmdTransmit);
this.Controls.Add(this.cmdReadings);
this.Controls.Add(this.cmdReceive);
this.Controls.Add(this.panel1);
this.Controls.Add(this.cmdConnect);
this.Controls.Add(this.lblLoggedOnAs);
this.Menu = this.mnuMain;
this.Text = "Mcm Vib Collector";
}
#endregion