By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,930 Members | 1,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,930 IT Pros & Developers. It's quick & easy.

ClickOnce Deployment

P: n/a
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
Apr 19 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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?
"Chris Rennert" <cr******@new.rr.com> wrote in message
news:44**********************@news.twtelecom.net.. .
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


Apr 19 '06 #2

P: n/a
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=|DataDirector y|\eMDIdb.mdf;Integrated
Security=True;User Instance=True";

Than you once again!

Chris
Nicole Calinoiu wrote:
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?
"Chris Rennert" <cr******@new.rr.com> wrote in message
news:44**********************@news.twtelecom.net.. .
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

Apr 20 '06 #3

P: n/a
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?

"Chris Rennert" <cr******@new.rr.com> wrote in message
news:44**********************@news.twtelecom.net.. .
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=|DataDirector y|\eMDIdb.mdf;Integrated
Security=True;User Instance=True";

Than you once again!

Chris
Nicole Calinoiu wrote:
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?
"Chris Rennert" <cr******@new.rr.com> wrote in message
news:44**********************@news.twtelecom.net.. .
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


Apr 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.