ClickOnce Deployment

C

Chris Rennert

Hey all, we have a project that we would like to use ClickOnce
deployment on, and although it all seems straightforward we are having a
few issues concerning SQL Server Express and clickonce. We are using C#
for our development language, and the application itself runs fine until
we get to a part that accesses the database. When it tries to hit the
database it bombs saying it can't find it. We even created a connection
string that explicitly looks for the mdf file locally.

I am sure others have done this same type of project, but I cannot seem
to find anything that matches it on the web. If I move the actually
deployment folder <project name 10000> with all our executables and mdf
files onto a pc (which already has Sql server express and .NET 2.0
installed) it runs fine. But, if I use the clickonce installer, and run
it from Start, Programs, <My Project> it bombs looking for the database
every time.

I appreciate any help you can give me. We are looking to switch to
using the windows installer itself, and I do not believe it is
necessary, I am sure ClickOnce does what we need it to do. If you need
any further info I apologize for not including it, and will post it
right away.

Take care,

Chris
 
N

Nicole Calinoiu

What connection string are you trying to use? Also, have you checked
manually to see whether the MDF file is actually being deployed to the
client?
 
C

Chris Rennert

Nicole,

Thank you very much for your reply. The files are being deployed to the
client, and here is the Connection string we are using. Granted, we are
installing the default instance as ./SQLEXPRESS

ConnectionString = @"Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\eMDIdb.mdf;Integrated
Security=True;User Instance=True";

Than you once again!

Chris
 
N

Nicole Calinoiu

No obvious problems so far, then. Might you be able to post the full
exception details (including call stack listing), as returned from its
ToString method?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top