Hi,
My winform vb.net app need to be packaged to distribute
for other people. This app has a back-end MS Access
database, and VB.net program files. In one of its
winforms, there's an OLEDBConnection connect to the
Access database. My question is how can I keep database
connection viable when deploying app?
Please help with suggestions. 9 11336
Put it in the app.config file or something. Don't use DSNs. I assume the MDB
is on the network somewhere?
I don't quite understand what you mean by "viable".
--
Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in message
news:23*****************************@phx.gbl... Hi,
My winform vb.net app need to be packaged to distribute for other people. This app has a back-end MS Access database, and VB.net program files. In one of its winforms, there's an OLEDBConnection connect to the Access database. My question is how can I keep database connection viable when deploying app?
Please help with suggestions.
I never tried deploy apps before. The thing is how can I
keep the app and database connection working without any
loss ? -----Original Message----- Put it in the app.config file or something. Don't use
DSNs. I assume the MDBis on the network somewhere?
I don't quite understand what you mean by "viable".
-- Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in
messagenews:23*****************************@phx.gbl... Hi,
My winform vb.net app need to be packaged to distribute for other people. This app has a back-end MS Access database, and VB.net program files. In one of its winforms, there's an OLEDBConnection connect to the Access database. My question is how can I keep database connection viable when deploying app?
Please help with suggestions.
.
Where is the database file? On a network share?
If that's the case then you'll have "loss" if the network flakes out on you.
If you put the connection string in the app.config file and make it point to
the database on the network you should be OK if the code works when the MDB
is opened locally.
--
Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in message
news:23*****************************@phx.gbl... I never tried deploy apps before. The thing is how can I keep the app and database connection working without any loss ?
-----Original Message----- Put it in the app.config file or something. Don't use DSNs. I assume the MDBis on the network somewhere?
I don't quite understand what you mean by "viable".
-- Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in messagenews:23*****************************@phx.gbl... Hi,
My winform vb.net app need to be packaged to distribute for other people. This app has a back-end MS Access database, and VB.net program files. In one of its winforms, there's an OLEDBConnection connect to the Access database. My question is how can I keep database connection viable when deploying app?
Please help with suggestions.
.
The database file is in local host not network.
Can you offer me more details ?
Thanks -----Original Message----- Where is the database file? On a network share?
If that's the case then you'll have "loss" if the
network flakes out on you. If you put the connection string in the app.config file
and make it point tothe database on the network you should be OK if the code
works when the MDBis opened locally.
-- Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in
messagenews:23*****************************@phx.gbl... I never tried deploy apps before. The thing is how can
I keep the app and database connection working without
any loss ?
>-----Original Message----- >Put it in the app.config file or something. Don't use DSNs. I assume the MDB >is on the network somewhere? > >I don't quite understand what you mean by "viable". > > >-- >Klaus H. Probst, MVP > http://www.vbbox.com/ > > >"Tracey" <an*******@discussions.microsoft.com> wrote
in message >news:23*****************************@phx.gbl... >> Hi, >> >> My winform vb.net app need to be packaged to
distribute >> for other people. This app has a back-end MS Access >> database, and VB.net program files. In one of its >> winforms, there's an OLEDBConnection connect to the >> Access database. My question is how can I keep
database >> connection viable when deploying app? >> >> Please help with suggestions. >> > > >. >
.
<an*******@discussions.microsoft.com> wrote in message
news:23*****************************@phx.gbl... The database file is in local host not network. Can you offer me more details ?
Yes, if you tell me what you think the problem is. How are you connecting to
the database right now? Are you using a DSN or a simple connection string?
What do you mean by "loss"?
If the target computer has all the prerequisites (in your case I suppose
that's .NET and ADO/DAO) then simply copying the EXE and other files the app
requires should be enough.
But it's difficult to know since you haven't *really* asked a question =)
--
Klaus H. Probst, MVP http://www.vbbox.com/
Sorry Klaus, English is not my native language.
I'm connecting database with DNS and in my program, the
code-behind file contains the connection string. -----Original Message-----
<an*******@discussions.microsoft.com> wrote in message news:23*****************************@phx.gbl... The database file is in local host not network. Can you offer me more details ? Yes, if you tell me what you think the problem is. How
are you connecting tothe database right now? Are you using a DSN or a simple
connection string?What do you mean by "loss"?
If the target computer has all the prerequisites (in
your case I supposethat's .NET and ADO/DAO) then simply copying the EXE and
other files the apprequires should be enough.
But it's difficult to know since you haven't *really*
asked a question =)
-- Klaus H. Probst, MVP http://www.vbbox.com/
.
No problem. I just want to understand what you're trying to do so I can
actually help you =)
OK, so you say "code behind", does that mean this is an ASP.NET application
written in VB.NET?
Web applications don't need to be "deployed" unless you want to install and
run them in a different server than, say, your workstation. Is that your
case? Do you want to move it to another machine to run it from there?
--
Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in message
news:24*****************************@phx.gbl... Sorry Klaus, English is not my native language. I'm connecting database with DNS and in my program, the code-behind file contains the connection string.
it's not code-behind, its winform application.
I connect with Access with ADO.net -----Original Message----- No problem. I just want to understand what you're trying
to do so I canactually help you =)
OK, so you say "code behind", does that mean this is an
ASP.NET applicationwritten in VB.NET?
Web applications don't need to be "deployed" unless you
want to install andrun them in a different server than, say, your
workstation. Is that yourcase? Do you want to move it to another machine to run
it from there? -- Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in
messagenews:24*****************************@phx.gbl... Sorry Klaus, English is not my native language. I'm connecting database with DNS and in my program, the code-behind file contains the connection string.
.
It sounds like you have developed a VB .NET application that connects to an
Access database via ADO .NET. You want to distribute the application with
your database and have the link between the application and database work on
the various machines you are installing it onto.
If this is correct I recommend having the access database being located
where the executable will reside. Then setup your application to connect to
the database via a connection string which points to the database file in
Application.ExecutablePath. When you create your installer just place the
executable and database in the same directory, no messing around with DSN
entries.
"Tracey" <an*******@discussions.microsoft.com> wrote in message
news:24*****************************@phx.gbl... it's not code-behind, its winform application. I connect with Access with ADO.net
-----Original Message----- No problem. I just want to understand what you're trying to do so I canactually help you =)
OK, so you say "code behind", does that mean this is an ASP.NET applicationwritten in VB.NET?
Web applications don't need to be "deployed" unless you want to install andrun them in a different server than, say, your workstation. Is that yourcase? Do you want to move it to another machine to run it from there? -- Klaus H. Probst, MVP http://www.vbbox.com/
"Tracey" <an*******@discussions.microsoft.com> wrote in
messagenews:24*****************************@phx.gbl... Sorry Klaus, English is not my native language. I'm connecting database with DNS and in my program, the code-behind file contains the connection string.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Wilson Ricardo Passos Oliveira |
last post by:
Hi fellows,
I have two simple questions regarding the Framework's deploy and the Setup
and Deploy Projects:
1. As I've read in another posts and newsgroups (and as I can imagine),
VS.NET...
|
by: James X. Li |
last post by:
We are using an ISP to host our web site. All we get
from our ISP is a root directory for our web site.
We can deploy a single ASP.NET application by copying all the
related files (global.asax,...
|
by: Robert Warnestam |
last post by:
Hello,
I have some problems deploying Crystal Reports.
I'm using Visual Studio 2005 Beta 1. In this version Crystal Reports
(9.7.3500.0) is included. I created a small test application...
|
by: Nils Hedström |
last post by:
I have a ASP.NET 1.1 project that I want to be able to deploy on my web-servers
while they have real traffic (40 requests/second).
When I copy the projects assembly in the bin-directory of the...
|
by: bob lambert |
last post by:
Help
I am trying to deploy to another pc a vb.net std 2002
windows form application. I am confused.
I created a project - windows form
I built form, compiled and debugged.
I created a...
|
by: alan |
last post by:
I've try to deploy my application by using Setup Wizard. But after I
build the setup application, it got a error said "unrecoverable
error!". I don't know what's the problem. In order to the what...
|
by: meo |
last post by:
Does .NET provide the way to deploy library to internal developer?
I am trying to find the way to deploy a library file to developer for having
integration to their application BUT the customer...
|
by: AGP |
last post by:
I resisted for many years but I've just written my first app in .NET2005
and am looking to deploy my app with a third-party installer. ClickOnce
and the VS Installer do not meed my needs and I am...
|
by: =?Utf-8?B?QW5kcmV3X2QxMjM=?= |
last post by:
Here is my problem. I have an app that has over 9 web services. For years I
had not issues with clickonce but now it looks like the build is missing
XmlSerializers.dll.deploy. I did have this...
|
by: stephen |
last post by:
Hi,
I am using Click Once Deploy to deploy an application.(this application has
an .exe, .config, .xml files) and after deployment to a location, I checked
for the files and all the files are...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |