Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2006, 05:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default InvalidProgramException

Hi All,
I am getting an error on my Pocket PC device that throws an InvalidProgramException.
I am using VS.NET 2003 and developing for the PocketOC 2003 .NET Compact Framework 2003.
The error occurs in the Dataset Designer code for my JobGroupDataSet
Code:
 public virtual JobGroupDataSet.JobGroupDataTable GetData() {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            JobGroupDataSet.JobGroupDataTable dataTable = new JobGroupDataSet.JobGroupDataTable();
            this.Adapter.Fill(dataTable);//<<<ERROR ON THIS LINE
            return dataTable;

Any Help would be much appreciated.

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================
 
Old March 16th, 2006, 10:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Problem found.
This error was caused by having SQLCE 3.0 installed on the device.
This stopped SQLCE 2.0 functioning and all my data access failed.
I ended up recreating the database in SQLCE 3.0 and all is working well now.
Is there a management utility for SQLCE?
I was not able to script or transfer my data directly with VS.NET?

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.