mydll.dll.config issues...

H

huntco

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?
 
P

Patrice

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top