473,327 Members | 2,112 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,327 software developers and data experts.

Enterprise library connection when dll app created.

I am creating Library (dll) with visual studio. Not windows, console,
or aspnet application, just a library(dll). Later i will use this dll
with my application.
When windows app or aspnet app, Use app.config or web.config to put
connection config files.
When i do dll app where would i put my configuration of connectons..?

i hope i clear.

Jun 27 '08 #1
1 1682
dll's are loaded into the application domain of the referencing application
i.e. either a windows app or a web app and hence make use of the applications
config file. The library's config file must be merged by hand into the app's
config file for the dll to read connectionstring etc from this config file.
However there are ways / hacks into making a dll use its own config file
instead of the application config file. This involes dynamically creating an
application domain and specifying the dll.config file for this AppDomain. The
problem with this approach however is that to access any type in the library
from the current domain you'll have to use .NET remoting to get across the
AppDomain boundary.

Besides it is less of an effort than requiring the users of the library to
write special code to load the library into another app domain, create types
in the other app domain and then use .NET remoting to access those objects.


--
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
"Me*******@hotmail.com" wrote:
I am creating Library (dll) with visual studio. Not windows, console,
or aspnet application, just a library(dll). Later i will use this dll
with my application.
When windows app or aspnet app, Use app.config or web.config to put
connection config files.
When i do dll app where would i put my configuration of connectons..?

i hope i clear.

Jun 27 '08 #2

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

Similar topics

1
by: Mike Chamberlain | last post by:
Hi all. I'm trying to extend the Microsoft Enterprise Library Data Access Application Block (http://msdn.microsoft.com/library/en-us/dnpag2/html/daab.asp?frame=true) to work with a Borland...
0
by: Mateusz [PEYN] Adamus | last post by:
Hi I have a Typed DataSet. I've databinded it to some text controls on my form, controls show data when I show record. But now I would like to create a new record with this form, controls...
7
by: galico | last post by:
Hi All, We are having a very strange problem with the above. We have designed an application in ASP.NET 2.0 that uses the enterprise library data application blocks amongst others. We seem to be...
7
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my...
4
by: -pb- | last post by:
I am using .NET 2.0 along with Data Access Application Block of Enterprise Library 2.0 in one of my wrapper class and what I observered is once the connection is left open after execution of...
2
by: Jac | last post by:
Hey, Is it possible to use Enterprise Library in a Windows Service? I work in VS2005 and made an Windows Service, but I don't see an app.config file. So, I created one appname.exe.config. ...
2
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I am trying to add multiple connection strings in my web.config file. I searched in google to find out how to add multiple connections strings through enterprise library 2.0 ,...
1
by: AutoTrackerPlus | last post by:
I'm using the EL 2.0 library. I have a datalayer where I am debating doing 2 things... I'm concerned that because I am using a IDataReader, my connection to the database is never getting closed and...
0
by: =?Utf-8?B?VGVycnkgSG9sbGFuZA==?= | last post by:
Im not sure if this is the correct group for this question - please feel free to redirect me to a more appropriate group if necessary Im assessing Enterprise Libraries and I wanted to know how...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.