1
Answer

newbie :: missing primarykey exception?

x _sanctus

x _sanctus

19y
5k
1
Dear All, i'm really new to .net and using database. I use access database using OleDbconnection I want to get a row from a table DataRow targetRow=member.Rows.Find(new Object[]{userId)}; but i got exception "the table don't have primary key" , but i'm sure i have set the primary key when creating the table. Please help..
Answers (1)
0
swilkinson

swilkinson

NA 48 0 20y
The client machines NEEDS the .net framework that your app was written with. You can get the resistibutable here http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en Install this and you should just be able to copy the exe onto the client and it will run. You can deploy it if you wish to have the add/remove program stuff. To do this in VS.Pro (sorry have not seen standard so it might not help). Start a new project and select setup and deployment and pick setup project. Then add the built exe you wish to deploy, you can also add registry and shortcust stuff with this windows installer project. The only thing I could not get it to do was to install the framework (something to do with windows installer using it!?!). We had to switch to install sheild and write a proper setup to bundle it in. Cheers, Si