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

C#

 
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 
AnswerRe: Database :( Pin
amx_tiger1-May-12 4:53
amx_tiger1-May-12 4:53 
GeneralRe: Database :( Pin
Dave Kreskowiak1-May-12 7:37
mveDave Kreskowiak1-May-12 7:37 
AnswerRe: Database :( Pin
Eddy Vluggen1-May-12 5:00
professionalEddy Vluggen1-May-12 5:00 
GeneralRe: Database :( Pin
amx_tiger1-May-12 5:04
amx_tiger1-May-12 5:04 
AnswerRe: Database :( Pin
Eddy Vluggen1-May-12 8:41
professionalEddy Vluggen1-May-12 8:41 
GeneralRe: Database :( Pin
amx_tiger2-May-12 10:53
amx_tiger2-May-12 10:53 
QuestionC# Pin
Koushal Dosi1-May-12 0:46
Koushal Dosi1-May-12 0:46 
AnswerRe: C# Pin
PIEBALDconsult1-May-12 3:36
mvePIEBALDconsult1-May-12 3:36 
AnswerRe: C# Pin
Eddy Vluggen1-May-12 5:01
professionalEddy Vluggen1-May-12 5:01 
AnswerRe: C# Pin
Abhinav S1-May-12 16:35
Abhinav S1-May-12 16:35 
QuestionClient found response content type of 'multipart/related; but expected 'text/xml'. Pin
NarVish30-Apr-12 2:37
NarVish30-Apr-12 2:37 
GeneralRe: Client found response content type of 'multipart/related; but expected 'text/xml'. Pin
Member 890733330-Apr-12 6:43
Member 890733330-Apr-12 6:43 
GeneralRe: Client found response content type of 'multipart/related; but expected 'text/xml'. Pin
NarVish30-Apr-12 20:24
NarVish30-Apr-12 20:24 
AnswerRe: Client found response content type of 'multipart/related; but expected 'text/xml'. Pin
Abhinav S30-Apr-12 21:28
Abhinav S30-Apr-12 21:28 
GeneralRe: Client found response content type of 'multipart/related; but expected 'text/xml'. Pin
NarVish1-May-12 19:43
NarVish1-May-12 19:43 

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.