Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
QuestionCalling SSIS package from c# Pin
KhandelwalA17-Nov-14 18:32
KhandelwalA17-Nov-14 18:32 
AnswerRe: Calling SSIS package from c# Pin
ZurdoDev18-Nov-14 2:08
professionalZurdoDev18-Nov-14 2:08 
QuestionC#.net Pin
alpesh koriya16-Nov-14 20:06
alpesh koriya16-Nov-14 20:06 
AnswerRe: C#.net Pin
Mycroft Holmes16-Nov-14 20:48
professionalMycroft Holmes16-Nov-14 20:48 
GeneralRe: C#.net Pin
alpesh koriya16-Nov-14 22:24
alpesh koriya16-Nov-14 22:24 
GeneralRe: C#.net Pin
alpesh koriya16-Nov-14 22:25
alpesh koriya16-Nov-14 22:25 
AnswerRe: C#.net Pin
Pete O'Hanlon16-Nov-14 22:34
mvePete O'Hanlon16-Nov-14 22:34 
AnswerRe: C#.net Pin
Gerry Schmitz17-Nov-14 1:14
mveGerry Schmitz17-Nov-14 1:14 
What's your connection string look like?

I assume it looks something like this:

... connectionString="Data Source=|DataDirectory|\MyDB.sdf" ...

Somewhere in your code (i.e. before you access the database), you should be setting the "DataDirectory" property; e.g.
C#
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.SetData( "DataDirectory", myDbLocation );

Your program should "infer" the location of your installed db using, for xample:
C#
Environment.SpecialFolder.CommonApplicationData

because (assuming your setup did a "typical" install), and based on the operating system, "user/app data" folders (where your db should be) wind up in different locations.

(If you did not install your db in the "standard" location, then you should find out where it did get installed and use that location).

Your installed app is not working because your installed db is not in the same relative location as it was during development.
Generalhow to make self signed code in xamarin IOS8 v2010 [moved] Pin
AhmedOsamaMoh16-Nov-14 19:57
AhmedOsamaMoh16-Nov-14 19:57 
AnswerRe: how to make self signed code in xamarin IOS8 v2010 Pin
CBadger16-Nov-14 20:05
professionalCBadger16-Nov-14 20:05 
GeneralRe: how to make self signed code in xamarin IOS8 v2010 Pin
Jacquers16-Nov-14 20:11
Jacquers16-Nov-14 20:11 
GeneralRe: how to make self signed code in xamarin IOS8 v2010 Pin
Mycroft Holmes16-Nov-14 20:31
professionalMycroft Holmes16-Nov-14 20:31 
GeneralRe: how to make self signed code in xamarin IOS8 v2010 Pin
OriginalGriff16-Nov-14 20:22
mveOriginalGriff16-Nov-14 20:22 
GeneralRe: how to make self signed code in xamarin IOS8 v2010 Pin
Richard Deeming17-Nov-14 3:07
mveRichard Deeming17-Nov-14 3:07 
QuestionQuery work in Access Query, but don't work in C# Pin
nta_388616-Nov-14 19:45
nta_388616-Nov-14 19:45 
AnswerRe: Query work in Access Query, but don't work in C# Pin
Mycroft Holmes16-Nov-14 20:43
professionalMycroft Holmes16-Nov-14 20:43 
AnswerRe: Query work in Access Query, but don't work in C# Pin
Bernhard Hiller16-Nov-14 21:36
Bernhard Hiller16-Nov-14 21:36 
QuestionCalling a MySQL Stored Procedure over SSH using .PEM file Pin
bpoker16-Nov-14 4:33
bpoker16-Nov-14 4:33 
AnswerRe: Calling a MySQL Stored Procedure over SSH using .PEM file Pin
Richard MacCutchan16-Nov-14 5:10
mveRichard MacCutchan16-Nov-14 5:10 
Questionissue with date format when exporting to excel Pin
parkway15-Nov-14 6:23
parkway15-Nov-14 6:23 
AnswerRe: issue with date format when exporting to excel Pin
Mycroft Holmes15-Nov-14 12:54
professionalMycroft Holmes15-Nov-14 12:54 
AnswerRe: issue with date format when exporting to excel Pin
Richard MacCutchan15-Nov-14 21:36
mveRichard MacCutchan15-Nov-14 21:36 
QuestionGeneric EventHandlers Pin
conradsmith14-Nov-14 22:27
conradsmith14-Nov-14 22:27 
AnswerRe: Generic EventHandlers Pin
Richard MacCutchan14-Nov-14 23:43
mveRichard MacCutchan14-Nov-14 23:43 
Questioncan i use viewstate in if else conditon? Pin
Member 1122118514-Nov-14 20:45
Member 1122118514-Nov-14 20:45 

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.