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 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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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:
|
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...
|
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
|
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...
| |
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...
|
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...
|
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....
|
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:
|
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)
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |