qertinteractive.blogg.se

Filewatcher service exit code 1
Filewatcher service exit code 1





filewatcher service exit code 1
  1. Filewatcher service exit code 1 series#
  2. Filewatcher service exit code 1 windows#

In this series, we’ll cover 26 topics over a span of 26 weeks from January through June 2020, titled ASP.

Filewatcher service exit code 1 series#

This is the twenty-third of a new series of posts on ASP. I made the same application as a console, it works perfectly.Maybe the service don't have the rights to read the files ? I someone has an idea. 17932, time stamp: 0x50327672įaulting application start time: 0x01ce18d947393653įaulting application path: C:\Program Files (x86)\Company\MyService\MyService.exeįaulting module path: C:\Windows\syswow64\KERNELBASE.dll

filewatcher service exit code 1

Here the second message from the event logįaulting application name: MyService.exe, version: 1.0.0.0, time stamp: 0x51349c1bįaulting module name: KERNELBASE.dll, version. Here is the first error message from the log Eventĭescription: The process was terminated due to an unhandled exception.Įxception Info: System.IO.FileNotFoundExceptionĪt _Created(System.Object, System.IO.FileSystemEventArgs)Īt System.IO.FileSystemWatcher.OnCreated(System.IO.FileSystemEventArgs)Īt System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32, System.String)Īt System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32, UInt32, *)Īt System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, *) There is also a static class printLabel for the datas, but nothing interesting for this case. ("MyService", () + " Error rendering print page: " + exc.Message + "Inner exception :" + exc.InnerException ) Make sure we haven't hit the end.Įv.HasMorePages = (m_currentPageIndex < m_streams.Count) Draw a white background for the reportĮv.Graphics.FillRectangle(Brushes.White, adjustedRect) Įv.Graphics.DrawImage(pageImage, adjustedRect) Adjust rectangular area with printer margins.Įv.PageBounds.Left - (int)ev.PageSettings.HardMarginX,Įv.PageBounds.Top - (int)ev.PageSettings.HardMarginY, Metafile pageImage = new Metafile(m_streams) Public static void PrintPage(object sender, PrintPageEventArgs ev) PrintDoc.PrintPage += new PrintPageEventHandler(PrintPage) ("MyService", () + " Error: cannot find the default printer.") If (m_streams = null || m_streams.Count = 0) ("MyService", () + " Error: no stream to print.") PrintDocument printDoc = new PrintDocument() ("My Service", () + " Error rendering print : " + exc.Message) Report.Render("Image", deviceInfo, CreateStream, out warnings) Public static void Export(LocalReport report) Public static Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek) = ReportDataSource("DataSet", PrintLabel.GetPrintLabels(e.FullPath))) ĪutoPrint.Export(reportViewer.LocalReport) Īnd here the code for the other class public class AutoPrint ReportViewer.ProcessingMode = ProcessingMode.Local ReportViewer reportViewer = new ReportViewer() Private void fsw_Created(object sender, FileSystemEventArgs e) Protected override void OnStart(string args) RegistryKey myKey = ("SOFTWARE\\Company\\MyService", false) įsw.Path = (string)myKey.GetValue("SourcePath") public partial class MyService : ServiceBase

Filewatcher service exit code 1 windows#

Service works fine on Windows 8, but on server 2008 R2 I get a crash every time I copy a file in the directory. I have make a filewatcher service that reads every XML files put in a directory and print the content on labels (Visual Studio 2012,Report viewer 2010).







Filewatcher service exit code 1