Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Вылетает программа #14

Open
1rV1N-git opened this issue Apr 2, 2021 · 2 comments
Open

Вылетает программа #14

1rV1N-git opened this issue Apr 2, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@1rV1N-git
Copy link

В случайные периоды вылетает прогрмма.
Возможно это когда 1с что то пищет в этот фал или во время рестарта службы 1с.

Unhandled exception. System.IO.FileNotFoundException: Could not find file 'C:\Program Files\1cv8\srvinfo\reg_1541\1CV8Clst.lst'.
File name: 'C:\Program Files\1cv8\srvinfo\reg_1541\1CV8Clst.lst'
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at OneSTools.EventLog.Exporter.Manager.ClstWatcher.ReadInfoBases()
   at OneSTools.EventLog.Exporter.Manager.ClstWatcher.ReadInfoBasesAndRaiseEvents()
   at OneSTools.EventLog.Exporter.Manager.ClstWatcher.ClstWatcher_Changed(Object sender, FileSystemEventArgs e)
   at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan`1 name)
   at System.IO.FileSystemWatcher.ParseEventBufferAndNotifyForEach(Byte[] buffer, UInt32 numBytes)
   at System.IO.FileSystemWatcher.ReadDirectoryChangesCallback(UInt32 errorCode, UInt32 numBytes, AsyncReadState state)
   at System.IO.FileSystemWatcher.<>c.<StartRaisingEvents>b__83_0(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pNativeOverlapped)
@akpaevj
Copy link
Owner

akpaevj commented Apr 9, 2021

С этим надо плотнее разбираться. Предполагаю, что менеджер кластера пересоздает файл при перезапуске службе

@akpaevj akpaevj added the bug Something isn't working label Apr 9, 2021
@deevil
Copy link

deevil commented Sep 21, 2023

Актуально)

Unhandled exception. System.IO.FileNotFoundException: Could not find file 'C:\Program Files\1cv8\srvinfo\reg_1541\1CV8Clst.lst'.
File name: 'C:\Program Files\1cv8\srvinfo\reg_1541\1CV8Clst.lst'
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at OneSTools.EventLog.Exporter.Manager.ClstWatcher.ReadInfoBases()
   at OneSTools.EventLog.Exporter.Manager.ClstWatcher.ReadInfoBasesAndRaiseEvents()
   at OneSTools.EventLog.Exporter.Manager.ClstWatcher.ClstWatcher_Changed(Object sender, FileSystemEventArgs e)
   at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan`1 name)
   at System.IO.FileSystemWatcher.ParseEventBufferAndNotifyForEach(Byte[] buffer, UInt32 numBytes)
   at System.IO.FileSystemWatcher.ReadDirectoryChangesCallback(UInt32 errorCode, UInt32 numBytes, AsyncReadState state)
   at System.IO.FileSystemWatcher.<>c.<StartRaisingEvents>b__83_0(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pNativeOverlapped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants