Solved

Compiling win form for scheduling (emoreau's example)

Posted on 2013-01-09
5
182 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
  • 2
  • 2
5 Comments
 
LVL 74

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
Comment Utility
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 69

Accepted Solution

by:
Éric Moreau earned 250 total points
Comment Utility
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
Comment Utility
>>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 69

Expert Comment

by:Éric Moreau
Comment Utility
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
Comment Utility
let me add tracing and try this again. Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to event 3 48
Launch Process with NOT as Administrator 15 65
Throws error on Decrypting String c# code 3 26
ConsoleSql 1 12
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now