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 / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Configuration Settings (app.config)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sharad - 08 Sep 2004 13:05 GMT
I am having problem reading the app.config file. I have 2 vb.net executables
one calling the other using process.start method. It seems like when the
calling form is run it reads the configuration file correctly and i get the
values from appsettings. But when i call the second executable from the first
the second executable doesn't read the app.config file. Reading any values
from appsettings give me an empty sting. But when i start the second
application on its own, i get the values from the configuartion settings. It
used to work fine, i have a old copy of it installed on a test machine and it
seems to be working fine. Can anybody help me with some suggestion
Cheers
Sijin Joseph - 08 Sep 2004 13:11 GMT
Try setting the Working Directory property of the ProcessStartInfo
before starting the second exe.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> I am having problem reading the app.config file. I have 2 vb.net executables
> one calling the other using process.start method. It seems like when the
[quoted text clipped - 6 lines]
> seems to be working fine. Can anybody help me with some suggestion
> Cheers
Sharad - 08 Sep 2004 14:32 GMT
Thanks for you reply,
I will try that..but what is baffling me is that..it was all working fine
the way it is now.. i haven't made any change which should affect this. I
repaired the VS.NET ..but stil the problem exists..

Thanks

> Try setting the Working Directory property of the ProcessStartInfo
> before starting the second exe.
[quoted text clipped - 13 lines]
> > seems to be working fine. Can anybody help me with some suggestion
> > Cheers
Sharad - 09 Sep 2004 09:21 GMT
Thanks sijin..your solution did work for me. I am still baffled how it was
working before without any changes ??

Cheers,

> Thanks for you reply,
> I will try that..but what is baffling me is that..it was all working fine
[quoted text clipped - 20 lines]
> > > seems to be working fine. Can anybody help me with some suggestion
> > > Cheers

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.