hi to all and sorry for my bad english.
I finished a c# project and all works good into IDE mode of Visual Studio 2010 debug.
also i use MS SQL server 2008.
I created an installation package including the 2 file of SQL DB (mdf and log)
i have installed the package software in a PC whit XP (i have Vista 32 Sp2).
the installation is successful without errors but when i launch the software
it not run and it show this message error:
Event Type : clr20r3
P4 : Syste Data
P9 : Syste.data.sqlclient
location of the connection string is the same where the software go to installation.
i have tried this one of two:
//SqlConnection ConnArticoli = new
SqlConnection("Data Source=.\\SQLExpress;AttachDbFilename=C:\\Program
Files\\SoftWare\\magazzino\\Magazzino.mdf;Integrated Security=True;User
Instance=True");
2nd of two ( add Pc Name after data source ):
//SqlConnection ConnArticoli = new
SqlConnection("Data Source=PC-NICOLA\\SQLExpress;AttachDbFilename=C:\\Program
Files\\ SoftWare\\magazzino\\Magazzino.mdf;Integrated Security=True;User
Instance=True");
in anycase nothing works . same errors ... and in my PC in work environment (Ide VS 2010 launching debug) it still work good.
Answers
Know the answer? Post it. Somebody with the same question will find it here.