Click here to Skip to main content
15,888,026 members
Home / Discussions / C#
   

C#

 
Question[SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 1:18
Bastar Media18-Sep-15 1:18 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
Pete O'Hanlon18-Sep-15 1:42
mvePete O'Hanlon18-Sep-15 1:42 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
GuyThiebaut18-Sep-15 1:52
professionalGuyThiebaut18-Sep-15 1:52 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 1:59
Bastar Media18-Sep-15 1:59 
AnswerCODE: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 2:10
Bastar Media18-Sep-15 2:10 
GeneralRe: CODE: Not Getting Proper Output From Compiled EXE File Pin
Richard MacCutchan18-Sep-15 2:25
mveRichard MacCutchan18-Sep-15 2:25 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
OriginalGriff18-Sep-15 2:25
mveOriginalGriff18-Sep-15 2:25 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 2:37
Bastar Media18-Sep-15 2:37 
Hi OriginalGriff,

The code for input and output files is
C#
private static readonly string TemplatesFile =
            Path.Combine(Directories.CurrentDirectory, "Reports", "ReportsTemplate.xlsx");
        private static readonly string MastersFile =
            Path.Combine(Directories.CurrentDirectory, "Reports", "Master.xlsx");
        private static FileInfo Template = new FileInfo(TemplatesFile);
        private static FileInfo Masters;


The folders have suitable permissions.

Yes, Debug and Release version are on the same computer, under same user.

When I run the EXE file I am not getting any output on both Debug and Release versions, but getting nice excel report when I run it from the IDE.

I am getting no errors. But, in the output window of the IDE, I am getting lots of First Chance Exceptions like this:
C#
A first chance exception of type 'System.ObjectDisposedException' occurred in System.Data.SQLite.dll


Even though, I am getting a nice excel report. But not from EXE file.

Regards.
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
OriginalGriff18-Sep-15 4:14
mveOriginalGriff18-Sep-15 4:14 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Gonzoox18-Sep-15 9:29
Gonzoox18-Sep-15 9:29 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Matt T Heffron18-Sep-15 11:10
professionalMatt T Heffron18-Sep-15 11:10 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 20:05
Bastar Media18-Sep-15 20:05 
GeneralRe: Not Getting Proper Output From Compiled EXE File Pin
Matt T Heffron18-Sep-15 11:12
professionalMatt T Heffron18-Sep-15 11:12 
AnswerRe: Not Getting Proper Output From Compiled EXE File Pin
Wendelius18-Sep-15 20:15
mentorWendelius18-Sep-15 20:15 
General[CAUSE]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 20:52
Bastar Media18-Sep-15 20:52 
GeneralRe: [CAUSE]: Not Getting Proper Output From Compiled EXE File Pin
Wendelius18-Sep-15 21:31
mentorWendelius18-Sep-15 21:31 
GeneralRe: [CAUSE]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:41
Bastar Media18-Sep-15 21:41 
General[SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:38
Bastar Media18-Sep-15 21:38 
GeneralRe: [SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Wendelius18-Sep-15 21:42
mentorWendelius18-Sep-15 21:42 
GeneralRe: [SOLVED]: Not Getting Proper Output From Compiled EXE File Pin
Bastar Media18-Sep-15 21:47
Bastar Media18-Sep-15 21:47 
QuestionNancyFx in OWIN and Windows Service host Pin
LIttle_Cat17-Sep-15 20:25
LIttle_Cat17-Sep-15 20:25 
AnswerRe: NancyFx in OWIN and Windows Service host Pin
Richard Andrew x6418-Sep-15 18:00
professionalRichard Andrew x6418-Sep-15 18:00 
QuestionREST Web API Query JSON Deserialization Pin
FMG Tech17-Sep-15 17:10
FMG Tech17-Sep-15 17:10 
AnswerRe: REST Web API Query JSON Deserialization Pin
Richard MacCutchan17-Sep-15 23:30
mveRichard MacCutchan17-Sep-15 23:30 
GeneralRe: REST Web API Query JSON Deserialization Pin
FMG Tech18-Sep-15 6:34
FMG Tech18-Sep-15 6:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.