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

Configuration files (Web site and Dll project)

I've posted this question earlier in framework group but had no luck with
answer... So I'd try here.
Any help/advice is appreciated. Thanks in advance.
In solution for now I have two projects.
1. I have dll project and dll project HAS its App.config (dll project is
middle tier)
there is for example:

class ObjectInDll
{
SqlConnection conn;
public ObjectInDll( )
{
conn = new
SqlConnection(ConfigurationManager.ConnectionStrin gs["connString"].ConnectionString;
// THERE IS connection string element with "connString" name in
Dll's config file
}
}
2. I have web site and web site has its web.config.
3. In page class Default.aspx.cs (let it be in Page_Load event)
ObjectInDll oid = new ObjectInDll();
// creation of ObjectInDll throws exception because THERE IS NO
connection string element with "connString" name within web.config.
So, my question is ( although I've solved problem by including Settings via
property page of dll project so I abandoned storing connection string in
config file)
*** How to solve this, if it is possible, without inclusion of Settings, or
if including Settings is good solution I can stop breaking my mind :))) (How
to make ConfigurationManager to read proper config file and not first he
steps on? because .NET stops searching for config file when it finds first
one, and web.config is first :) ) ***
Dec 27 '06 #1
0 825

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Maellic | last post by:
Hi, I'm having real trouble locating configuration settings on an existing website. Details follow: I've recently taken over a website developed with ASP.NET. Unfortunately the original...
4
by: scottrm | last post by:
We have two developers, call them A and B, (on Windows XP) developing a number of asp.net web sites on a shared server (Windows 2003). Everything has been ok but recently for no apparent reason...
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...
7
by: Inga2005 | last post by:
I have developed an web site in VS2005 but I can't build a release version since the option is missing in the configuration manager. The second thing is that there isn't a bin folder placed in my...
2
by: heddy | last post by:
Howdy folks. I am trying to build a web service using the following configuration: I have Windows 2003 Server running in VMware. I have IIS set up on it. I installed the .NET 2.0 package on...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
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...
0
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 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.