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

mydll.dll.config issues...

VS2005, .Net 2.x

I've built a .dll from the classlibrary template. Everything works
great on the development box. When moving it over to the production
box, I started getting database connection errors. Added some debug
code, and it looks like the connection string stored in the
application settings (app.config) are being compiled into the .dll
rather than being read into it from the accompanying mydll.dll.config
file at runtime.

I've seen several posts suggesting ways around this; I guess I'm not
proficient enough in VB.Net yet to "get it."

1) Is the "compiled in when it's a .dll, read in when it's an .exe" a
feature or a bug?
2) Since the item in question is a database (SQL) connection string
(required for the IDE to work when visually building tables,
tableadapters, methods on those tableadapters, etc.) - and that's
generaded by an IDE wizard and stored in the app.config file - how do
you get VB to:
a) recognize a valid connection string for the IDE environment and
b) change that string after it becomes "hard coded" by the .dll
build process?

Aug 22 '07 #1
1 1547
Not sure what you mean especially with the first question.

IMO the problem is likely that you have actually AFAIK no dll.config file.
Settings are read in the *application* configuration file that is the
app.exe.config file...

---
Patrice

<hu****@gmail.coma écrit dans le message de news:
11**********************@i13g2000prf.googlegroups. com...
VS2005, .Net 2.x

I've built a .dll from the classlibrary template. Everything works
great on the development box. When moving it over to the production
box, I started getting database connection errors. Added some debug
code, and it looks like the connection string stored in the
application settings (app.config) are being compiled into the .dll
rather than being read into it from the accompanying mydll.dll.config
file at runtime.

I've seen several posts suggesting ways around this; I guess I'm not
proficient enough in VB.Net yet to "get it."

1) Is the "compiled in when it's a .dll, read in when it's an .exe" a
feature or a bug?
2) Since the item in question is a database (SQL) connection string
(required for the IDE to work when visually building tables,
tableadapters, methods on those tableadapters, etc.) - and that's
generaded by an IDE wizard and stored in the app.config file - how do
you get VB to:
a) recognize a valid connection string for the IDE environment and
b) change that string after it becomes "hard coded" by the .dll
build process?

Aug 22 '07 #2

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

Similar topics

2
by: Andrew Jocelyn | last post by:
Hi I get this error when I change something in the web.config file. When I build the VS projects and load the first web page the application runs fine. If I then make a save the web.config file...
10
by: Ryan | last post by:
I've created a custom configuration section that inherits (naturally) from System.Configuration.ConfigurationSection. The configuration section is working 99% fine, however I keep coming across a...
1
by: Matt F | last post by:
Two of the projects in my solution that both need to use a common user.config file. This is a data application - the executable that is created with the first project is the primary executable...
6
by: TS | last post by:
I cannot get this to work. I added an app.config to a project i reference from my web application project (vs 05) but can see no way to access the settings within it. the other thing is that I...
3
by: SevDer | last post by:
Hi All, I am recently experiencing a weird problem. I don't know what exactly is the cause of the problem but here is my scenario and symptoms. First of all here is my architecture 1. I have...
3
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
I've added a web deployment project and want to use the config section replacement but I'm obviously not understanding something. I have set up an alternate appSettings file,...
10
by: =?Utf-8?B?TUNN?= | last post by:
When creating a new VB Web Application Project with VS2008, there are several settings (compiler settings, option strict, etc) that appear both in the web.config file and "My Project". I'm...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I cut and paste the following code from msdn help page which it just introduces view and multiview server controls. Here is what I do: in vs studio 2005, File --New Web Site, it...
5
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a app that uses several membership/role providers. I can list these Providers with the code: Dim rootWebConfig1 As Configuration rootWebConfig1 =...
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: 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...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.