Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2007

Tip: Looking for answers? Try searching our database.

App settings magic?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Altman - 23 Oct 2007 17:32 GMT
I have an application that consists of two projects, a main program and a
separate DLL assembly.  The DLL contains an application-scoped setting,
which I access via something to the effect of My.Settings.SomeSetting.

Now, here is the mystery:  I was under the impression that
application-scoped settings are stored in the .config file associated with
the application assembly.  But Visual Studio doesn't copy the dll's config
file to the main application directory.  The only files I see in the main
application directory are the application's exe, pdb, and config files plus
the dll and it's pdb file.  And yet it works.  When I call into the dll,
My.Settings.SomeSetting returns the value I've given it in the designer.

Where is this application-scoped setting stored?  Is it somehow baked into
the dll?  I chose to use the My.Settings magic because I thought I'd end up
with a text file that could be edited in the field if a customer needed to
change that setting.  But I can't find the text file...

TIA - Bob
Harry - 23 Oct 2007 21:20 GMT
>I have an application that consists of two projects, a main program and a
>separate DLL assembly.  The DLL contains an application-scoped setting,
[quoted text clipped - 15 lines]
>
> TIA - Bob
I  was surprised to find that the settings are compiled into the dll. Have a
look at your dll in notepad, and you will find the settings.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.