Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
Questionembed javascript code in c# Pin
mrx1001-May-12 12:02
mrx1001-May-12 12:02 
AnswerRe: embed javascript code in c# Pin
Dave Kreskowiak1-May-12 13:27
mveDave Kreskowiak1-May-12 13:27 
AnswerRe: embed javascript code in c# Pin
Abhinav S1-May-12 16:36
Abhinav S1-May-12 16:36 
Questionhow can i add a midi file in my csharp project? Pin
SeyedRezaFatemi1-May-12 10:20
SeyedRezaFatemi1-May-12 10:20 
AnswerRe: how can i add a midi file in my csharp project? Pin
Richard MacCutchan1-May-12 10:41
mveRichard MacCutchan1-May-12 10:41 
AnswerRe: how can i add a midi file in my csharp project? Pin
egenis1-May-12 20:28
egenis1-May-12 20:28 
QuestionHow can i specify drive specification Pin
Fred 341-May-12 9:11
Fred 341-May-12 9:11 
JokeRe: How can i specify drive specification PinPopular
Wes Aday1-May-12 9:42
professionalWes Aday1-May-12 9:42 
GeneralRe: How can i specify drive specification Pin
Fred 341-May-12 9:51
Fred 341-May-12 9:51 
GeneralRe: How can i specify drive specification PinPopular
Richard MacCutchan1-May-12 10:40
mveRichard MacCutchan1-May-12 10:40 
GeneralRe: How can i specify drive specification Pin
PIEBALDconsult1-May-12 10:37
mvePIEBALDconsult1-May-12 10:37 
GeneralRe: How can i specify drive specification Pin
Wes Aday1-May-12 10:49
professionalWes Aday1-May-12 10:49 
GeneralRe: How can i specify drive specification Pin
PIEBALDconsult1-May-12 11:10
mvePIEBALDconsult1-May-12 11:10 
GeneralRe: How can i specify drive specification Pin
Wes Aday1-May-12 11:26
professionalWes Aday1-May-12 11:26 
GeneralRe: How can i specify drive specification Pin
PIEBALDconsult1-May-12 11:40
mvePIEBALDconsult1-May-12 11:40 
AnswerRe: How can i specify drive specification Pin
Bernhard Hiller1-May-12 23:56
Bernhard Hiller1-May-12 23:56 
AnswerRe: How can i specify drive specification Pin
Ravi Bhavnani3-May-12 17:16
professionalRavi Bhavnani3-May-12 17:16 
NewsC-- Pin
dsdssdfsdfds1-May-12 6:59
dsdssdfsdfds1-May-12 6:59 
GeneralRe: C-- Pin
Dave Kreskowiak1-May-12 7:40
mveDave Kreskowiak1-May-12 7:40 
Questionsend data from c# to html Pin
mrx1001-May-12 5:18
mrx1001-May-12 5:18 
GeneralRe: send data from c# to html Pin
mrx1001-May-12 7:44
mrx1001-May-12 7:44 
GeneralRe: send data from c# to html Pin
Wes Aday2-May-12 1:40
professionalWes Aday2-May-12 1:40 
QuestionDatabase :( Pin
amx_tiger1-May-12 4:07
amx_tiger1-May-12 4:07 
Hi. How I can move an application with database? ... If I move the application to another pc , it can't open the database Hmmm | :|

The database is Sql Server Compact (.mdf). I tried with Sqlite, but it gave me some error Frown | :( at ConnectionString: Picture with Add Connection Error... or when I debug the application: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
When I add at the form.config this:
C#
<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>

It give me this error: Error...

Sql:
At SqlConnection I tried to declare:
C#
SqlConnection conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename="+ System.IO.Directory.GetCurrentDirectory()+"\\Database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True;");

and
C#
SqlConnection conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename="C:\\Users\\ccs\\documents\\visual studio 2010\\Projects\\Database Software Pack\\Database Software Pack\\Database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True;");


Any ideas? I know I am stressful, but I need help.

I am sorry for my bad english Frown | :(

Thank you in advance.

modified 1-May-12 10:38am.

AnswerRe: Database :( Pin
Dave Kreskowiak1-May-12 4:22
mveDave Kreskowiak1-May-12 4:22 
JokeRe: Database :( Pin
Not Active1-May-12 4:51
mentorNot Active1-May-12 4:51 

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.