Solved

Compiling win form for scheduling (emoreau's example)

Posted on 2013-01-09
5
187 Views
Last Modified: 2013-01-11
This is a related question to this:
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_27987601.html

I compiled the code ... myExample.... in Release mode and it gives me several files. One is myexample.exe

I scheduled it but I had to move the config file to the same folder as well for the exe to run. How can I compile it and include all the necessary files in the compiled file? OR is it ok the way I have it (the exe and the config file) ?
0
Comment
Question by:Camillia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
ID: 38758635
Standard practice is to have the config file and the exe separate. Life will be more complicated for you if you try to embed the config file into the exe.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 38758692
You normally need to deploy :
-the .exe
-any config files
-any components (.dll) not part of the framework used/referenced by your application
0
 
LVL 7

Author Comment

by:Camillia
ID: 38758716
>>Life will be more complicated for you if you try to embed the config file into the exe.

My coworker asked me if all the files are embedded and I thought I might be doing this the wrong way.

I scheduled it , I pass the parameter /batch as part of the scheudled job but it looks like the job is not running. I saw it ran once yesterday (but not every hour as I have it). When I double click on the exe, the interface comes up and it runs...

Going to delete the job and do it again. I'll keep this question open, if it's ok.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38758729
can it be related to permissions?

you might want to add some tracing to your application to find out where your application hangs/stops: http://emoreau.com/Entries/Articles/2003/11/Code-diagnostic-an-article-on-tracing-and-debugging.aspx
0
 
LVL 7

Author Comment

by:Camillia
ID: 38758741
let me add tracing and try this again. Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question