dlcollison


Hello All ...

I am attempting to create a program that will run on the PocketPC 2003 environment. I have upgraded Visual Studio to SP1, I have installed SQL Server Compact Edition on my development machine and I have installed SQL Server Compact Edition Tools For Visual Studio on the development machine.

I have created a new project Visual Basic - Smart Device - Pocket PC 2003. I have created a form for user input. I build and deploy the form to the Symbol Pocket PC to test - no connection to data and it works.

I then add a reference to System.Data.SqlServerCE.dll and rebuild and redeploy the application to the handheld. When I attempt to open the form I receive the following error:

psmPocket.exe
NotSupportedException
System.Drawing.Bitmap

at System.Resources.ResourceReader.LoadObjectV2() at System.Resources.ResourceReader.LoadObject() at System.Resources.RuntimeResourceSet.GetObject() at System.Resources.ResourceManager.GetObject() at System.Resources.ResourceManager.GetObject() at pmsPocket.frmSetSOPType.InitializeComponent() at psmPocket.frmSetSOPType..ctor() at System.Reflection.RuntimeContructorInfo.InternalInvoke() at System.Reflection.RuntimeContructorInfo.InternalInvoke() at System.Reflection.ContrcutorInfo.Invoke() at System.Activator.CreateInstance() at MyForms.Create__Instance__() at MyForms.get_frmSetSOPType() at psmPocket.SetSOPType.Main()

Now the confusing part is that I haven't changed any of the forms or the code behind the forms, I have simply added the reference to the project.

Any idea why adding the reference to System.Data.SqlServerCE.dll would cause the system to start generating these errors

I've checked, the install process has loaded the .NET 2 framework to the handheld. And as indicated at the beginning of this message, the application showed the form prior to my adding the reference.

Thoughts

Thanks ...




Re: System.Data.SqlServerCE.dll reference causes error ...

Jens K. Suessmeyer


Seems that there is a problem with the Visual controls rather than the SQL references. What are you trying to do there


Jens K. Suessmeyer.

---
http://www.sqlserver2005.de
---





Re: System.Data.SqlServerCE.dll reference causes error ...

Nick Randolph

What happens if you remove this reference again - does it go back to working properly

Have you added a reference to the correct version of system.data.sqlserverce.dll (see this post across at www.sqlserverce.org) as this might be a cause - although it normally manifests itself as a build error rather than a runtime issue.