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.confi g.
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 4 1141
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" <DA***@discussi ons.microsoft.c om> wrote in message
news:6A******** *************** ***********@mic rosoft.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.confi g. 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
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.FileN otFoundExceptio n..."
But it is only if I start this app not "manually" ,here is the code:
Process myProcess = new Process();
myProcess.Start Info.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" <DA***@discussi ons.microsoft.c om> wrote in message news:6A******** *************** ***********@mic rosoft.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.confi g. 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
You may want to set the working directory in the start info structure, and
set UseShellExecute to Off.
--
--- 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" <DA***@discussi ons.microsoft.c om> wrote in message
news:B7******** *************** ***********@mic rosoft.com... 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.FileN otFoundExceptio n..."
But it is only if I start this app not "manually" ,here is the code:
Process myProcess = new Process(); myProcess.Start Info.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" <DA***@discussi ons.microsoft.c om> wrote in message news:6A******** *************** ***********@mic rosoft.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.confi g. > 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 >
You may want to set the working directory in the start info structure, and
set UseShellExecute to Off.
--
--- 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" <DA***@discussi ons.microsoft.c om> wrote in message
news:B7******** *************** ***********@mic rosoft.com... 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.FileN otFoundExceptio n..."
But it is only if I start this app not "manually" ,here is the code:
Process myProcess = new Process(); myProcess.Start Info.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" <DA***@discussi ons.microsoft.c om> wrote in message news:6A******** *************** ***********@mic rosoft.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.confi g. > 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 > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: BJörn Lindqvist |
last post by:
See: http://www.wxpython.org/quotes.php. especially:
"wxPython is the best and most mature cross-platform GUI toolkit,
given a number of constraints. The only reason wxPython isn't the
standard Python GUI toolkit is that Tkinter was there first." - Guido
van Rossum
Guess, that answers my question, but isn't "Tkinter was there first" a
very bad answer? :) It is kinda ugly too, so I wonder why it can't be
replaced? Or maybe another GUI...
|
by: |
last post by:
This code get's a link error (I'm guessing because the template isn't being
instantiated)...
// For using templates to simplify deleting items
template <class T>
// Returns the next ADHL in the list
AbstractDataHolderList*
// Used to delete this object and the item it points to
AbstractDataHolderList::DeleteThisItem(void)
{
|
by: tomailmelookatbottom |
last post by:
I am a beginner in C++. I recently downloaded the codes of C++ faq
book.Since I don't have the book ,following is two program which is
confusing me a lot.
program 38_01.cpp
^^^^^^^^^^^^^^^^^
#include <iostream>
using namespace std;
class Fred {
|
by: Oscar Monteiro |
last post by:
I´m trying to make an application with if ...something
else if ... something else to dinamically change a src script,
can't this be done ? and if so why not ?
Thanks in advance , Oscar Monteiro
<span id="script">
<script type="text/javascript" >
script.innerHTML="script src='a.js' ";
</script>
|
by: Gustavo G. Rondina |
last post by:
Hi all
I'm writting a simple code to solve an ACM problem
(http://acm.uva.es, it is the problem #468). In its code I have the
following fragment:
freq = calcfreq(hashfreq, strfreq, input);
printf("before malloc: %s (%p)\n", input+INPUTLEN);
hchars = (char *)malloc(freq*sizeof(char));
schars = (char *)malloc(freq*sizeof(char));
| |
by: Bill Menees |
last post by:
VS.NET 2003 defaults the "Debugger Type" property to "Auto" for Visual C++
projects. Unfortunately, the "Auto" type isn't very smart. "Auto" bases
the debugger type on the launched EXE's type, which may have nothing to do
with the C++ project I'm trying to debug.
I have a .NET EXE that hosts all of my DLLs, but a lot of the DLLs are old,
unmanaged C++ COM DLLs. Now everytime I debug one of them, I have to
remember to change the...
|
by: darrel |
last post by:
I have a asp:dropdownlist set to autopostback.
However, my handler doesn't seem to execute (even though there is a
postback).
Here's the DDL:
<asp:dropdownlist id=ddl_districtSelect runat="server" AutoPostBack="True">
(list items)
</asp:dropdownlist>
|
by: IAmIronMan |
last post by:
This individual is stealing other peoples code and
claiming it as his own. The proof is when I asked him to
explain his code he would not.
For proof view these threads in dotnet.languages.vb
Giving Back(Thank You)
scorpion53061
Straighten This Out....
|
by: Ecohouse |
last post by:
I have a main form with two subforms. The first subform has the child
link to the main form identity key.
subform1 - Master Field: SK
Child Field: TrainingMasterSK
The second subform has a master-child link to the first subform.
subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK
Child Field: TrainingModuleTopicSK
|
by: WaterWalk |
last post by:
I've just read an article "Building Robust System" by Gerald Jay
Sussman. The article is here:
http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf
In it there is a footprint which says:
"Indeed, one often hears arguments against building exibility into an
engineered sys-
tem. For example, in the philosophy of the computer language Python it
is claimed:
\There should be one|and preferably only one|obvious...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |