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

SyncTrayzor unable to access temporary config file (AV issue?) #166

Closed
chrisveness opened this issue Oct 26, 2015 · 1 comment
Closed

SyncTrayzor unable to access temporary config file (AV issue?) #166

chrisveness opened this issue Oct 26, 2015 · 1 comment

Comments

@chrisveness
Copy link

Version: 1.0.28.141; Variant: Installed; Arch: Amd64

Path: C:\Program Files\SyncTrayzor\SyncTrayzor.exe
System.IO.IOException: The process cannot access the file 'C:\Users\[user]\AppData\Roaming\SyncTrayzor\config.xml.tmp' because it is being used by another process.
   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, String 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, FileOptions options)
   at SyncTrayzor.Utils.AtomicFileStream..ctor(String path, String tempPath, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) in C:\projects\synctrayzor\src\SyncTrayzor\Utils\AtomicFileStream.cs:line 87
   at SyncTrayzor.Utils.AtomicFileStream.Open(String path, String tempPath, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) in C:\projects\synctrayzor\src\SyncTrayzor\Utils\AtomicFileStream.cs:line 76
   at SyncTrayzor.Services.FilesystemProvider.OpenAtomic(String path, FileMode mode) in C:\projects\synctrayzor\src\SyncTrayzor\Services\FilesystemProvider.cs:line 32
   at SyncTrayzor.Services.Config.ConfigurationProvider.SaveToFile(Configuration config) in C:\projects\synctrayzor\src\SyncTrayzor\Services\Config\ConfigurationProvider.cs:line 295
   at SyncTrayzor.Services.Config.ConfigurationProvider.LoadFromDisk(Configuration defaultConfiguration) in C:\projects\synctrayzor\src\SyncTrayzor\Services\Config\ConfigurationProvider.cs:line 166
   at SyncTrayzor.Services.Config.ConfigurationProvider.Initialize(Configuration defaultConfiguration) in C:\projects\synctrayzor\src\SyncTrayzor\Services\Config\ConfigurationProvider.cs:line 84
   at SyncTrayzor.Bootstrapper.Configure() in C:\projects\synctrayzor\src\SyncTrayzor\Bootstrapper.cs:line 94
   at Stylet.BootstrapperBase.Start(String[] args)
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
@canton7
Copy link
Owner

canton7 commented Oct 26, 2015

Dup of #159.

When we start up, we create the file C:\Users\caroline\AppData\Roaming\SyncTrayzor\config.xml.tmp, then try and open it for writing. Between us creating it and trying to open it, something else on your computer has grabbed it and opened it.

This might be a virus scanner, or something similar.

Is this problem repeatable: if you try and start SyncTrayzor many times, does it fail in the same way each time? Do you have anti-virus, anti-malware, or some sort of synchronization software running which might have grabbed the file?

@canton7 canton7 changed the title Oops! Something went badly wrong SyncTrayzor unable to access temporary config file (AV issue?) Oct 26, 2015
@canton7 canton7 closed this as completed Nov 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants