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 / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Configuration problem depending on startup method

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
erikjblair@gmail.com - 06 Jun 2006 16:08 GMT
Hi all,

This is a little in-depth, so bear with me.  I have a client
application that uses the MS Config App block.  Everything works as
expected under normal circumstances and the ConfigManager is able to
read items without problem when simply running the app.

Here's the issue.  We have also entered a registry key
"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\<MyAppName>\shell\open\command"
that allows us to go to the IE address bar and type
"MyAppName:<someargumentInfo>" and have it find our app.  Problem is,
when the application is started from this method, the Config Manager is
unable to read any config data.  It's confounding.

My thought is that it's because the App starts out in the IE process,
that the Framework isn't finding the App.Config file.  When the App
starts out in it's own process, all is good.

Any ideas?  Help!

Thanks!

Erik Blair
Saad Rehmani - 07 Jun 2006 00:01 GMT
erikjblair@gmail.com,

I agree, its probably due to relative path.

What happens if you set the app's path (to what the dir the normal app runs
from) prior to loading up the ConfigManager?

I believe its stored under System.Environment.CurrentDirectory

Signature

Saad Rehmani / Prodika / Dallas / TX / USA

> Hi all,
>
[quoted text clipped - 19 lines]
>
> Erik Blair

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.