VSCT keeps overwriting my config file

Feb 23, 2016 at 4:30 PM
Edited Feb 23, 2016 at 4:33 PM
I wasted a lot of time trying to get this Add-In to work a few years back. I decided to try it again. I want to use it with Beyond Compare, again. I tried modifying the config.xml for Beyond Compare, again. Now, as soon as I try to "Compare Selected" it overwrites my config.xml with the original config.xml contents. This makes no sense.

I tried making the config.xml read-only so the stupid add-in wouldn't overwrite it. Well, the tool fails to load.

Microsoft Visual Studio

The 'VSCompTools.VSCompToolsPackage, VSCompTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6d334cea149744be' package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\Lee\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.

Restarting Visual Studio could help resolve this issue.

Continue to show this error message?

Yes No

<entry>
<record>686</record>
<time>2016/02/23 16:21:34.466</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [VSCompTools.VSCompToolsPackage, VSCompTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6d334cea149744be][Access to the path &apos;C:\Users\Lee\AppData\Roaming\Visual Studio Comparison Tools\config.xml&apos; is denied.]:{   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.File.InternalDelete(String path, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.Delete(String path)&#x000D;&#x000A;   at VisualStudioComparisonTools.ComparisonConfig.Save()&#x000D;&#x000A;   at VisualStudioComparisonTools.ComparisonConfig.Load()&#x000D;&#x000A;   at VSCompTools.VSCompToolsPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>
<guid>{AFF98032-7C33-47C4-A6F6-7879970A1D68}</guid>
<hr>80070005 - E_ACCESSDENIED</hr>
<errorinfo>Access to the path 'C:\Users\Lee\AppData\Roaming\Visual Studio Comparison Tools\config.xml' is denied.</errorinfo>
</entry>
<entry>
<record>687</record>
<time>2016/02/23 16:21:34.466</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [VSCompTools.VSCompToolsPackage, VSCompTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6d334cea149744be]</description>
<guid>{AFF98032-7C33-47C4-A6F6-7879970A1D68}</guid>
<hr>80070005 - E_ACCESSDENIED</hr>
<errorinfo>Access to the path 'C:\Users\Lee\AppData\Roaming\Visual Studio Comparison Tools\config.xml' is denied.</errorinfo>
</entry>
Coordinator
Feb 23, 2016 at 8:06 PM
Download the new build 3.1.40 and see your other discussion for a guide to setting up log4net.

I changed the new build also to catch the error if it cannot write to the config file, so you should be golden.