Click here to Skip to main content
15,868,077 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: Send Mails with CF 2.0 Pin
Dennis Dykstra21-Nov-06 16:49
Dennis Dykstra21-Nov-06 16:49 
QuestionInvoking an application in C# from a button on windows mobile 2003 Pin
pankaj_12312-Nov-06 17:49
pankaj_12312-Nov-06 17:49 
Questionproblem with Nokia Web Browser 4.0 Pin
ctlqt1211-Nov-06 19:29
ctlqt1211-Nov-06 19:29 
Question"SendKeys" for a mobile device ??? Pin
reinhard_jd10-Nov-06 10:51
reinhard_jd10-Nov-06 10:51 
QuestionAccessing Oracle from device Pin
Richard Jones10-Nov-06 8:01
Richard Jones10-Nov-06 8:01 
QuestionMissing System.Data.ODBC Pin
nemopeti9-Nov-06 21:41
nemopeti9-Nov-06 21:41 
QuestionSocketRecieveTimeout in .NetCompactFramework Pin
aruna_koride9-Nov-06 20:21
aruna_koride9-Nov-06 20:21 
QuestionSqlCeConnection issues Pin
RB@Emphasys9-Nov-06 6:26
RB@Emphasys9-Nov-06 6:26 
Hello All,

I'm using cf 2.0 on the emulated ppc 2003 device that is bundled with vs2005. For some reason, when I attempt to connect to my database it throws a sqlexception error with no error message. My code is as follows:

SqlCeEngine engine = new SqlCeEngine("Data Source='\\Program Files\\UCPS\\UPCS.sdf';");
if (!(File.Exists("\\Program Files\\UCPS\\UPCS.sdf")))
engine.CreateDatabase();

SqlCeConnection connection = new SqlCeConnection(engine.LocalConnectionString);
connection.Open();

I can connect to the database on the device just fine. The database has no password. In this code sample, it does indeed find the UPCS.sdf file in the second line and does not try and create a new one. But when I try to open the connection, it errors out with no message. The only data I have is

HResult = -2146233087
StackTrace = StackTrace "at System.Data.SqlServerCe.SqlCeConnection.ProcessResults()\r\nat System.Data.SqlServerCe.SqlCeConnection.Open()\r\nat System.Data.SqlServerCe.SqlCeConnection.Open()\r\nat UPCS.Data.StatusTable.RetrieveStatusRecords()\r\nat UCPS.Main.Main_Load()\r\nat System.Windows.Forms.Form.OnLoad()\r\nat System.Windows.Forms.Form._SetVisibleNotify()\r\nat System.Windows.Forms.Control.set_Visible()\r\nat System.Windows.Forms.Application.Run()\r\nat UCPS.Program.Main()\r\n" string

I would really appreciate any suggestions,

Thanks,
Ryan

AnswerRe: SqlCeConnection issues Pin
RB@Emphasys9-Nov-06 8:05
RB@Emphasys9-Nov-06 8:05 
AnswerRe: SqlCeConnection issues Pin
Richard Jones10-Nov-06 8:10
Richard Jones10-Nov-06 8:10 
QuestionTransparent Control Pin
Manish19727-Nov-06 2:10
Manish19727-Nov-06 2:10 
AnswerRe: Transparent Control Pin
arcticbrew21-Nov-06 17:36
arcticbrew21-Nov-06 17:36 
QuestionVirtual IP - Vertical Handoff Pin
kedde17-Nov-06 1:56
kedde17-Nov-06 1:56 
QuestionQuestions regarding Compact Framework. Pin
Aasifkhan6-Nov-06 18:20
Aasifkhan6-Nov-06 18:20 
QuestionAvailable Memory and Free Disk Space in CF 1.0 Pin
Marco [Stinger]6-Nov-06 6:04
Marco [Stinger]6-Nov-06 6:04 
AnswerRe: Available Memory and Free Disk Space in CF 1.0 Pin
zoid ! 9-Nov-06 6:16
zoid ! 9-Nov-06 6:16 
GeneralRe: Available Memory and Free Disk Space in CF 1.0 Pin
Marco [Stinger]9-Nov-06 6:27
Marco [Stinger]9-Nov-06 6:27 
QuestionProblems with IssueVendorTransfer Pin
slowdiver6-Nov-06 4:00
slowdiver6-Nov-06 4:00 
QuestionHow to access the .sdf file's created in Pocket PC from compact framework emulator Pin
Aasifkhan6-Nov-06 1:50
Aasifkhan6-Nov-06 1:50 
AnswerRe: How to access the .sdf file's created in Pocket PC from compact framework emulator Pin
AlexeiXX37-Nov-06 18:20
AlexeiXX37-Nov-06 18:20 
GeneralRe: How to access the .sdf file's created in Pocket PC from compact framework emulator Pin
Aasifkhan8-Nov-06 19:38
Aasifkhan8-Nov-06 19:38 
GeneralRe: How to access the .sdf file's created in Pocket PC from compact framework emulator Pin
AlexeiXX39-Nov-06 6:53
AlexeiXX39-Nov-06 6:53 
QuestionTransparency related issues Pin
Manish19723-Nov-06 23:49
Manish19723-Nov-06 23:49 
QuestionSending message pc to mobile through Bluetooth Pin
kumar bharat bhusanam3-Nov-06 19:15
kumar bharat bhusanam3-Nov-06 19:15 
AnswerRe: Sending message pc to mobile through Bluetooth Pin
AlexeiXX37-Nov-06 18:08
AlexeiXX37-Nov-06 18:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.