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

a utility dll's own .config file possible?

If there is a dll that my asp pages uses but is in a separate assembly, can
I define a separate config for it and will it read?

For example, if I have a MyLibrary.dll and I define a MyLibrary.dll.config,
will objects in MyLibrary.dll have access to the .config?

Thanks
Nov 18 '05 #1
3 1124
I think not.
I think that the .dll will read the web.config file.
--
Joe Fallon

"Jiho Han" <ji******@infinityinfo.com> wrote in message
news:OY**************@TK2MSFTNGP11.phx.gbl...
If there is a dll that my asp pages uses but is in a separate assembly, can I define a separate config for it and will it read?

For example, if I have a MyLibrary.dll and I define a MyLibrary.dll.config, will objects in MyLibrary.dll have access to the .config?

Thanks

Nov 18 '05 #2
No, not unless the assembly is loaded by an executable that reads its own
appname.exe.config whereupon the appSettings (for example) will be available
to the dll.
You can have the dll read its own config file programmatically of course.
HTH
--Peter

"Jiho Han" <ji******@infinityinfo.com> wrote in message
news:OY**************@TK2MSFTNGP11.phx.gbl...
If there is a dll that my asp pages uses but is in a separate assembly,
can
I define a separate config for it and will it read?

For example, if I have a MyLibrary.dll and I define a
MyLibrary.dll.config,
will objects in MyLibrary.dll have access to the .config?

Thanks

Nov 18 '05 #3
I think I am going to be ending up doing exactly that. I was just
wanting to find a way if possible to not have to implement my own
config(and its format). I'd use web.config but I am developing an
add-on to an already existing application and I'd like to stay away from
mucking with web.config if possible.

If you have any suggestions as to how to go about it, I'd appreciate
them. I'm thinking about generating a xsd and create a class using
xsd.exe which I am going to use xml serialization feature. I guess I
should be using a validating reader though...

Thanks all.
Jiho

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4

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

Similar topics

2
by: Suresh Gladstone | last post by:
Hi, This is a bit with versioning and installation of the .NET dlls. I want to perform the following, 1. A third party application will be invoking my .NET dll through COM interop . For this I...
4
by: Programmer | last post by:
Hi everyone Well here is my problem I hope you can help me
3
by: Andy | last post by:
Hello All: When you develop a C# app that is deployed as an .exe, you can use a .exe.config file to set some parameters to avoid changing code. I would like to do the same thing using a .dll,...
0
by: Andy | last post by:
Hello All: When you develop a C# app that is deployed as an .exe, you can use a .exe.config file to set some parameters to avoid changing code. I would like to do the same thing using a .dll,...
7
by: Stefan | last post by:
Hi! I´m creating a classlibrary project. The output will be a dll. This dll will have to read some settings from some kind of config-file. Normally, when creating a standard .exe-program I use...
0
by: Rastko Soskic | last post by:
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....
8
by: Sonali | last post by:
Hi, I am new to this group. I am working on a peice of code which is like: 1 windows class library project which needs a startup project (exe generated by other project). It references this exe...
5
by: Kurt Jakobsen | last post by:
Hello, I have a utility class that do some db queries that are used by independent pages. From one of the utility functions I would like to return variables back to the aspx page. In old C this...
1
by: jabbari | last post by:
Hello, Please Help us...! I have a big problem ,so i searched on google and other search engine ,then I realized that so many other people have the same problem and they, all, have'nt been able to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
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
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...

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.