473,698 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2476
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.r r.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

ConnectionStrin g = @"Data
Source=.\SQLEXP RESS;AttachDbFi lename=|DataDir ectory|\eMDIdb. mdf;Integrated
Security=True;U ser 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.r r.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.r r.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

ConnectionStrin g = @"Data
Source=.\SQLEXP RESS;AttachDbFi lename=|DataDir ectory|\eMDIdb. mdf;Integrated
Security=True;U ser 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.r r.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
4702
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 Settings\...-directory in target computer, or is there something wrong with my ClickOnce deployment? I assumed application(s) goes into x:\Program Files\... -directory.
11
14662
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 application folder was set to 'Allow scripts only', I get an error: Failed to connect to 'http://192.168.0.5/TransAct/' with the following error:
1
2778
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 have it's own custom deployment properties such as Publish Version Number, Start Menu and application Name in start menu. For example, in the past (before ClickOnce deployment) I had to build Setup.exe files and distribute them to various...
2
13843
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
2737
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 to web services, which then connect to a database. The tiers are all on different nodes and we have around 1000 client users. We currently deploy the web services with Wise and adjust the database (cluster) manually. The clients should be...
3
3874
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 to our app, we must change an app setting in the project (the IP where the data access layer is) and also the URL in the ClickOnce (to correspond to a server at a particular feedyard). Once we publish, we have to change the app setting and the URL...
2
2710
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 clients do not overwhelm our support staff with loading questions and new feature questions. ClickOnce will elininate the CD cost and the loading questions but that still does not take care of the calls for new feature questions. I would like to...
2
4252
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 properly or at least confirm if it will just not work? When not requiring the client certificate the deployment site works fine. However, when I set SSL to "require client certificate" I am prompted for a client cert when I initially open the url....
2
4541
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 for VSTO & ClickOnce documentation and did not find anything. I've noticed that there is an option to publish the project, but when I do that and then run the application from Web it throws us security errors like:
3
5235
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 VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3053 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.