Re: strang, isn't it?
From: DAMAR (DAMAR_at_discussions.microsoft.com)
Date: 03/25/05
- Next message: Som sally: "Re: User control problem"
- Previous message: Girish: "Re: Implicit conversion design issues"
- In reply to: Nick Malik [Microsoft]: "Re: strang, isn't it?"
- Next in thread: Nick Malik [Microsoft]: "Re: strang, isn't it?"
- Reply: Nick Malik [Microsoft]: "Re: strang, isn't it?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Mar 2005 22:47:02 -0800
Hello
Here is the error message :
"An unhandled exception has occured in your application..... .Config file
APP.exe.config cannot be read successfully due to exception:
System.IO.FileNotFoundException..."
But it is only if I start this app not "manually" ,here is the code:
Process myProcess = new Process();
myProcess.StartInfo.FileName="C:\\App.exe";
myProcess.Start();
If I start it from explorer everything is all right. So what am I doing
wrong here?
Damar
"Nick Malik [Microsoft]" wrote:
> Please post the complete text of the error message.
>
> I assume that this is a console application, since you are starting it when
> Windows starts. Did you create this as a service?
>
> If not, first answer "why not?" so I can understand your constraints and
> then please tell me the location in the registry that you are using to
> denote you want the app to start on start-up (so I can repro the problem.
> There's more than one registry setting that can be used like this).
>
> If possible, can you post a small but complete app that recreates this
> problem?
>
> --
> --- Nick Malik [Microsoft]
> MCSD, CFPS, Certified Scrummaster
> http://blogs.msdn.com/nickmalik
>
> Disclaimer: Opinions expressed in this forum are my own, and not
> representative of my employer.
> I do not answer questions on behalf of my employer. I'm just a
> programmer helping programmers.
> --
> "DAMAR" <DAMAR@discussions.microsoft.com> wrote in message
> news:6A9B90D0-404E-405D-8844-70487A98FE15@microsoft.com...
> > Hello
> > I have (strange for me) problem. I have developed an application , let's
> > say
> > MyApp.exe. This is win-forms application. It has its own configuration
> > file,
> > generated of course by VS.NET and called MyApp.exe.config.
> > I put a path to this application into registry, that the app starts when
> > windows will start. A problem is that I have an error when the app
> > starts -
> > .exe.config could not be found. But If I start this app manually
> > everythig
> > works fine
> > What could be a problem? Maybe I should modify the registry entry and pass
> > the config file as a parameter?
> > Thanks for any suggestions
> > Damar
> >
>
>
>
- Next message: Som sally: "Re: User control problem"
- Previous message: Girish: "Re: Implicit conversion design issues"
- In reply to: Nick Malik [Microsoft]: "Re: strang, isn't it?"
- Next in thread: Nick Malik [Microsoft]: "Re: strang, isn't it?"
- Reply: Nick Malik [Microsoft]: "Re: strang, isn't it?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|