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

How to access MySettings from a DLL?

Hi,

I have a vb.net solution created in Studio 2008 running on .Net 2.0.

The solution contains 2 projects, a main Windows app and a business logic
project that compiles to a separate DLL.

In the main app I have used MyProject.Settings to setup connection strings
etc... but I can't access these config keys from the business logic project
(DLL).

Does anyone know how to get my business logic project to 'see' the
MyProject.Settings keys from the main application?

--

Rich

http://www.badangling.com
....talking pollocks since 1996
Mar 10 '08 #1
1 3912
On Mar 10, 10:15*am, "Rich" <nos...@nowhere.comwrote:
Hi,

I have a vb.net solution created in Studio 2008 running on .Net 2.0.

The solution contains 2 projects, a main Windows app and a business logic
project that compiles to a separate DLL.

In the main app I have used MyProject.Settings to setup connection strings
etc... but I can't access these config keys from the business logic project
(DLL).

Does anyone know how to get my business logic project to 'see' the
MyProject.Settings keys from the main application?

--

Rich

http://www.badangling.com
...talking pollocks since 1996
Rich,

Hit the same roadblock myself a while back. Finally worked through it
and posted the lessons learned/how I got it working at
http://tracyhunt.blogspot.com/2007/1...g-net-dll.html.

Tracy
Mar 14 '08 #2

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

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
13
by: Bob Palank | last post by:
Remote server hosts a .mdb file but the client cannot access the DB through VB.Net Express 2005. My Assumptions: 1. One can use VB.Net Express 2005 to write a client resident application to...
6
by: TimothyDoran | last post by:
Hello first of all thank you for your time in reading this post. My problem is that i have a setting called 'altitude'. I want to pass this setting to another function or sub, but i cant seem to...
2
by: cmay | last post by:
I have an asp.net application at the root, and other applications suchs as /WebApp1, /WebApp2. By design, these web applications inherit the root application's web.config file. But, when you...
7
by: Tony K | last post by:
How can I customize, at runtime, the path for the OLEDB connection uses. I used the Add Data Source Wizard and found the path set by the wizard is ReadOnly.
1
by: Monty | last post by:
Hello, I have a class that exposes several values like so: Public Shared ConnString As String The class, originally enough, is named "Settings". If I interrogate a value of this object in the...
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...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.