This is a migrated thread and some comments may be shown as answers.

How to use connection string from web.config

1 Answer 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
BC
Top achievements
Rank 1
BC asked on 26 Feb 2010, 04:02 PM
Hi,

I have created a reports class library and used report wizard to connect to DB and create the report. As a result, it created the connection string in app.config of the reports project and the dataset thus created uses the connection info from the settings file.
The issue is when I publish the application to the live server, the app.config from reports project doesn't obviously get published. I had to manually copy that. How can I work around that?

Environment: VS2008, Q3 2009, C#

Thanks,
BC.

1 Answer, 1 is accepted

Sort by
0
BC
Top achievements
Rank 1
answered on 11 Jul 2011, 11:42 PM
This has been resolved and can be closed.
Tags
General Discussions
Asked by
BC
Top achievements
Rank 1
Answers by
BC
Top achievements
Rank 1
Share this question
or