473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ClickOnce Deployment

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
3 2446
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mika M | last post by:
Hi! I made ClickOnce deployment for Windows Forms VB 2005 application, and it's working mostly fine. Now I have some question: 1. Is it okay when my application goes into x:\Documents and...
11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
2
by: Alex Bögli | last post by:
Hi I have a rather advanced deployment scenario and wanted to know, if anyone has an idea how to accomplish that with ClickOnce: We are deploying a 3-tier application with a client connecting...
3
by: Ronald S. Cook | last post by:
We have a VS2005 Team setup and are developing a Windows app (smart client). We are in the cattle feeding business and have 10 distinct feedyards across the U.S. When we wish to deploy an update...
2
by: Jamey McElveen | last post by:
Hello, I would like to use ClickOne but we need to stagger our update process. Currently we are shipping cd's when it is time for an update. We stagger the release in waves of 250 each so our...
2
by: =?Utf-8?B?Sm9obiBC?= | last post by:
A windows forms 2.0 ClickOnce deployment fails when both SSL is enabled and "require client certificate" enabled on the IIS deployment web server. Can anyone assist with how to configure this...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
3
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.