Skip to content

train should handle System.IO.DirectoryNotFoundException exception #45

@evgeny-k

Description

@evgeny-k
Copyright (c) RemObjects Software, 2013. All rights reserved.
script(c_DA.train) {
  include(c_RO.train) {
    include(c_EW.train) {
      function buildEverwoodDelphiPackage(21) {
        folder.create($(Everwood)/Dcu/D21) {
          Could not find a part of the path 'C:\Program Files (x86)\RemObjects Software\Everwood\Dcu\D21'.
        } folder.create
      } function buildEverwoodDelphiPackage
    } include
  } include
} script

Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\RemObjects Software\Data Abstract for Delphi\log.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, St
ring msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
   at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
   at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
   at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options)
   at System.Xml.Linq.XDocument.Save(String fileName)
   at RemObjects.Train.XmlLogger.Write()
   at RemObjects.Train.MultiLogger.b__0(ILogger a)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at RemObjects.Train.MultiLogger.Write()
   at RemObjects.Train.ConsoleApp.Main(String[] args)

also it produces

[Window Title]
Train.exe

[Main Instruction]
Train.exe has stopped working

[Content]
Windows can check online for a solution to the problem.

[V] View problem details [Check online for a solution and close the program] [Close the program] [Debug the program]

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: train.exe
Problem Signature 02: 0.5.0.0
Problem Signature 03: 540c3d67
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.30319.18444
Problem Signature 06: 52717edc
Problem Signature 07: 442a
Problem Signature 08: 105
Problem Signature 09: System.IO.DirectoryNotFound
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1049
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions