fatbunny's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Members
Active Posts:
33 (0.02 per day)
Joined:
09-February 09
Profile Views:
646
Last Active:
User is offline Jun 24 2014 05:25 AM
Currently:
Offline

Previous Fields

Country:
IE
OS Preference:
Windows
Favorite Browser:
Opera
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Volkswagen
Dream Kudos:
0

Latest Visitors

Icon   fatbunny has not set their status

Posts I've Made

  1. In Topic: App runs ok but fails in task scheduler, how can I debug it?

    Posted 23 May 2014

    Settings the working directory fixed it. Thanks guys.

    It must have been down to me not fully specifying the path and the app was looking somewhere else for my email file and crashing out.
  2. In Topic: App runs ok but fails in task scheduler, how can I debug it?

    Posted 23 May 2014

    lol, put it on a 32bit machine (server 2008 standard) and its failing again from the task scheduler, same error. Have to do a bit more investigating on this.....my system is a win7 64bit.
  3. In Topic: App runs ok but fails in task scheduler, how can I debug it?

    Posted 22 May 2014

    I got it working, eventually found issue on the web. Its due to a 32bit application being run on a 64bit system with task schedule. I had to create a batch file, to run the program from 32bit command line

    C:\Windows\SysWow64\cmd.exe /C "C:\Program Files\App\Utility.exe"
    
    


    Hope this helps someone else who runs in to this issue.
  4. In Topic: App runs ok but fails in task scheduler, how can I debug it?

    Posted 22 May 2014

    Doesn't look like the first line is even getting to run. I have this at that the start of the application but no log file gets created.
    It must be failing on some prerequisite or dependency that task scheduler is restricted from.

    bit lost now.


    01	Imports System.Net.Mail
    02	Imports System.IO
    03	 
    04	Module Module1
    05	 
    06	    Sub Main()
      Using sw As StreamWriter = New StreamWriter("logs.txt")
                sw.WriteLine("Start" & vbCrLf & "___________" & vbCrLf)
    
    
    
    
  5. In Topic: App runs ok but fails in task scheduler, how can I debug it?

    Posted 21 May 2014

    Tasks history reports it ran fine. I'm going to break up the code, like you said, instead of emailing it, I will write it to a log file instead and see if it fails, at least then I will know if its the email portion that is causing the issue. Only fails on the scheduler which is weird.

My Information

Member Title:
New D.I.C Head
Age:
37 years old
Birthday:
June 7, 1977
Gender:
Location:
Ireland
Years Programming:
0
Programming Languages:
vb.net

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

fatbunny hasn't added any friends yet.

Comments

fatbunny has no profile comments yet. Why not say hello?