473,473 Members | 4,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

publish a project

47 New Member
hi i want to ask how to successfully install a published program into another computer
in my project i: build -> Publish then follow all the steps, then save it to cd then install in other computer, but when i run, i have a problem with the database. as far as i know, i use Application.StartupPath in the connection string which would solve the problem, but it dindn't
please help
Feb 20 '08 #1
13 1293
DrBunchman
979 Recognized Expert Contributor
hi i want to ask how to successfully install a published program into another computer
in my project i: build -> Publish then follow all the steps, then save it to cd then install in other computer, but when i run, i have a problem with the database. as far as i know, i use Application.StartupPath in the connection string which would solve the problem, but it dindn't
please help
Hi there,

What do you mean by you have a problem with the database? How are you connecting to the database? What error are you receiving? Are you using ODBC for instance?

Please provide some more information.

Regards,

Dr B
Feb 20 '08 #2
wassssup
47 New Member
Hi there,

What do you mean by you have a problem with the database? How are you connecting to the database? What error are you receiving? Are you using ODBC for instance?
Please provide some more information.
Regards,
Dr B
i cant connect to the database, giving a whole list of errors
i connect to the database through the program, its a login page, so when i click login, it supposed to check with the databse, thats where the error occurs
Feb 20 '08 #3
Plater
7,872 Recognized Expert Expert
This is a web application then?
You would need to configure the IIS on the computer where you trying to install/run it from to have permisions with the database.
Feb 20 '08 #4
wassssup
47 New Member
This is a web application then?
You would need to configure the IIS on the computer where you trying to install/run it from to have permisions with the database.
oops...forgot to specify that...its a windows form application, not web app..
Feb 20 '08 #5
DrBunchman
979 Recognized Expert Contributor
OK, so what are the errors that it's throwing?
Feb 20 '08 #6
wassssup
47 New Member
OK, so what are the errors that it's throwing?
it says:
unhandled exception has ocurred in your application. if you click Continue, the application will ignore this error and attempt to comtinue. if you click quit , the application will close immediately.

could not find file 'C:\Documents and setting\ local settings\ Apps\2.0\AVGR.P70\Stock.mdb
Feb 20 '08 #7
DrBunchman
979 Recognized Expert Contributor
You need to configure the location of your database file (Stock.mdb) correctly. If you know where it lives then configure your code to point to it.

Dr B
Feb 20 '08 #8
wassssup
47 New Member
You need to configure the location of your database file (Stock.mdb) correctly. If you know where it lives then configure your code to point to it.
Dr B
i tested it with the computer that i used to develop the app. if i compile and run the app, no problem. if i publish and run from there same problem...even though the database is still at the right place
Feb 20 '08 #9
Plater
7,872 Recognized Expert Expert
It's def looking for your database in the temporary runtime directory.
That would be a problem of using Application.StartupPath, since the startup path will be the temporary directory.
Feb 20 '08 #10
wassssup
47 New Member
It's def looking for your database in the temporary runtime directory.
That would be a problem of using Application.StartupPath, since the startup path will be the temporary directory.
so what do you recomend me to use?
is there another way to solve this problem?
please help
Feb 20 '08 #11
Plater
7,872 Recognized Expert Expert
Have you tried not specifying a path and keeping the .mdb file in the same directory as the .exe?
Feb 20 '08 #12
wassssup
47 New Member
Have you tried not specifying a path and keeping the .mdb file in the same directory as the .exe?
yeah...my code looks like this..
Application.StartupPath + \\fypStock.mdb
Feb 21 '08 #13
Plater
7,872 Recognized Expert Expert
yeah...my code looks like this..
Application.StartupPath + \\fypStock.mdb
Try doing JUST
"fypStock.mdb"
Feb 22 '08 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: msnews.microsoft.com | last post by:
I'm looking for a one-step publish to server solution. I'm developing my web app in VS.NET and use my local IIS for testing. When ready to publish the latest release, I'd like to be able to hit...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
10
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files...
21
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight...
3
by: Tom | last post by:
I did a Build --Publish web site last night on my web app, It publish correctly but it created 12 DLL's for it. Is there a way to only get 1 dll for the entire web project like in 03 or a is there...
1
by: kurt sune | last post by:
I am having trouble publishing a website for RELEASE. 1. web.config: <compilation defaultLanguage="vb" debug="false"> 2. in Configuration manager I set the configuration to Release for the...
3
by: mrajanikrishna | last post by:
Hi friends, I've designed an application in my local system using VS.NET 2003. (VB.NET and ASP.NET) Its working fine. Now, I want to publish to my ISPs server. I've FTP account. How can I...
9
by: Jason | last post by:
Hi all, I am no longer able to publish a web site project using Visual Studio 2005 Professional. I am publishing it to an FTP url, and this used to work just fine. I enter the username and...
2
by: moondaddy | last post by:
I have a asp.net 2.0 project (vs 2005) and am trying to publish it to a folder on the same machine (the dev machine). the project (and solution) builds fine, but when I publish it, it publishes...
3
by: =?Utf-8?B?Sm9obiBT?= | last post by:
Hi, I'm trying to publish a new web service that I've written. It's fine when I publish it on the local PC but I get Publish failed in the development environment when I try to publish it to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.