473,394 Members | 1,773 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,394 software developers and data experts.

Installation Connectionstring problem

63
Hi guys,

I got a problem in setting up project.

I made a windows application(vb.net) and installed it in another guy's system.The desktop aplications forms and all came correctly but none of the db operations worked whenever a db related operation comes it shows the error

"Connectionstring not initialized"

Have any of you got this problem?If yes why does it come and what is the solution?Pls help me if you can

Thanks in advance bye Paulson.
May 10 '07 #1
4 1188
dip_developer
648 Expert 512MB
Hi guys,

I got a problem in setting up project.

I made a windows application(vb.net) and installed it in another guy's system.The desktop aplications forms and all came correctly but none of the db operations worked whenever a db related operation comes it shows the error

"Connectionstring not initialized"

Have any of you got this problem?If yes why does it come and what is the solution?Pls help me if you can

Thanks in advance bye Paulson.

you know that Connection string includes the information about Database Name,Database path...etc etc....
check whether you included the Database in your setup project or not.....or whether you installed database in the machine seperately....whichever the case check the location of the database in the target machine and make your connectionstring accordingly before making setup.....

I doubt you have made setup of your project with the connection string applicable in your machine.....
whenever you installed your application to another machine your application will find the database path which you supplied in the connection string.....
May 10 '07 #2
Paulson
63
you know that Connection string includes the information about Database Name,Database path...etc etc....
check whether you included the Database in your setup project or not.....or whether you installed database in the machine seperately....whichever the case check the location of the database in the target machine and make your connectionstring accordingly before making setup.....

I doubt you have made setup of your project with the connection string applicable in your machine.....
whenever you installed your application to another machine your application will find the database path which you supplied in the connection string.....

HI Dip


I don't think so.I know what you mean

You mean that the connection string must have been set as per my system's config isn't it?.

This is not the case. I have made my connectionstring in web.config file and included this file in my project.Even if I
install this in another machine it can be changed there.I access
the connectionstring using

Configurationsettings.Appsettings("connectionstrin g")

like this but still the problem exists,what I think is that once the connectionstring is changed the project fails to recognize it,dont know why.

Did u get what I mean,sorry if I'm not a good narrator.But actually I think I got some other problem also.

Anyway thanks for your attention and reply

Thanks in advance bye Paulson.
May 10 '07 #3
kenobewan
4,871 Expert 4TB
Have you installed the db on the other machine?
May 10 '07 #4
Paulson
63
Have you installed the db on the other machine?
HI Keno

yes I have installed db on other machine using sql script I created along with this project setup. And it works fine only that the other machine must have sql and dotnet 1 framework installed in it.

bye Paulson.
May 10 '07 #5

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

Similar topics

4
by: Devante | last post by:
Hi, I am fairly new to ASP.NET and have been working on a web form that will allow a user to upload images to a database. I have found a sample web form that I have been trying to get working,...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
2
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For...
2
by: Chen | last post by:
I have a project which contain several WinForms. I put a SqlDataAdapter in Many of the Forms. I want these SqlConnection1.ConnectionString Point to the same SQL Server. So I create a Global Const...
3
by: Arpan | last post by:
I recently installed SQL Server 2005 (Management Studio Express) along with SQL Server 2005 Express (Configuration Manager) in my Win2K Pro m/c & use IIS 5.0 to run ASPX projects. I could add my...
5
by: Radu | last post by:
Hi. In a repeater I have as ItemTemplate the following, among others, and everything works great: <asp:SqlDataSource ID="LocationSqlDataSource" SelectCommand="SELECT blah-blah-blah"...
1
by: priyamtheone | last post by:
What's the connectionstring to connect to the Oracle9.0 Database Server irrespective of servername,username and password using VB.Net2002 (.Net framework 1.0)? In case of Microsoft SQL Server the...
0
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most...
0
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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
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...

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.