Quantcast
Viewing all articles
Browse latest Browse all 27069

ClickOnce Deployment with a SQL server DB

I am able to use clickonce to deploy my VB.net simple application. This is a learning application so it doesn't really do much except register people and have two tables.
Now, I want to learn how to update the application using click once. I was able to learn that as well with no much of difficulty. But my question now, is when ever I update, it deletes my my previously entered data from the database. I search around and found this article from Robin

but can't get the code to work. When ever i try to include (required) the database, I get this error: Un handled error: could not find the file and it point to my database name in \AppData\Local\Apps\2.0\long #s file\MyDB.
I realized this is the same folder that clickonce uses to keep my application database folder.

NOW, My question to the forum users is that: 1. what am I doing wrong? - I beleive I know a pertial answer to that but not sure. I followed exactly what Robbin said in her post but for some reason I don't the placement of the code right...I think?
I am place the code on her blog on my first start-up form Load even...is this wrong? where should I be put that code the creates/copies the Database files from clickonce deployement to the folder I created in \AppData\MyAplication ??

Should I make a class for that code and place and somehow point to it in start up form?

Please help me if you can.

Thank you very much

Viewing all articles
Browse latest Browse all 27069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>