SQL Source Control 7 - "The process cannot access the file"
neilpp
Posts: 1 New member
Every time I boot up SSMS and then run "Get Latest" I'm confronted by a "Tell Redgate about this error" modal.
It then says it cannot access a bin file in \AppData\Local\Red Gate\SQL Source Control 7\Caches\Scripts Folders
because another process is using it. The files beginning with b and e are always those effected. I simply delete the files and then refresh and then the tool runs fine.
I'm running SQL v18.11.1 of SSMS and SQL Source Control version 7.3.10.14545 on Windows 10
This start occurring roughly a month back. My colleague who is using the same set-up is also having the same problem and for him it started roughly a fortnight earlier than it has for me.
Is this a bug in the latest version?
It then says it cannot access a bin file in \AppData\Local\Red Gate\SQL Source Control 7\Caches\Scripts Folders
because another process is using it. The files beginning with b and e are always those effected. I simply delete the files and then refresh and then the tool runs fine.
I'm running SQL v18.11.1 of SSMS and SQL Source Control version 7.3.10.14545 on Windows 10
This start occurring roughly a month back. My colleague who is using the same set-up is also having the same problem and for him it started roughly a fortnight earlier than it has for me.
Is this a bug in the latest version?
Tagged:
Answers
I suspect this could be down to the anti-virus on your machines and it would be a good idea to exclude that folder path from being searched and used by the tool.
The latest version is also 7.3.29.15618 if you enable "frequent updates"
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
Myself and a number of colleagues started to see this issue earlier this week.
We have tried adding an exclusion in our anti-virus software with no success.
Running SQL Source Control 7 (Version 7.3.10.14545) No Updates Available.
I have attached my log file for reference.
Also tried tracing the event in Process Monitor and I found what appears to be the sharing violation.
Our work around at the moment is to delete the contents of "Scripts Folders" before opening SSMS. That seems to fix the issue. Until SSMS is restarted. At which point the issue comes back.
EDIT: Just want to confirm that opting in to frequent updates and upgrading to version 7.3.29.15618
seems to have fixed it for me.
We have some users running SQL Source Control 6 who may not benefit but this is an improvement.
1. Unlink from source control (SQL Source Control > Setup > Unlink from source control)
2. Link to source control (Link to source control > Just let me try it out > Use an existing evaluation repository > Link)
since a while, we have the same problem and it makes SQL Source Control hard to use.
It seems to work a short while after updates but reoccures.
I sent the error report without any response.
A fix of this issue is highly appreciated. Deleting the script folder on a regular basis should not be the final solution!
Close SSMS, then go to %localappdata% > Red Gate > SQL Source Control 7 > Open the "RedGate_SQLSourceControl_Engine_EngineOptions" file in NotePadd++ or similar tool
Add the following lines and save the file
Once you've added the lines of code and deleted the Cache folder, re-open SSMS and continue as normal
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
I just wanted to say that i upgraded to 7.3x and that sorted it for me. Before upgrade I tried reboot etc, but nothing helped.
So, try to upgrade first.
/Fredrik
I tried the suggestion from DanC and that works for me - so far. I will post back here if the problem comes back.
And performance still good with Cache disabled with large databases.
@DanC Any other ideas as to what is causing this? It doesnt appear to be AV related - exclusions added to AV for that path. The workaround is overwritten every other day.
I would advise using something like Process Monitor to check what's taking control of the file
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?