SmartCommandlineArgs icon indicating copy to clipboard operation
SmartCommandlineArgs copied to clipboard

Hang on Startup

Open CelestialPanda42 opened this issue 6 years ago • 2 comments

If SmartCommandArgs window is tabbed (in my case it's part of the output/ symbols etc tab) then on startup it may hang. Was able to pull the following from ActivityLog.xml. Also using VisualAssist and PlasticSCM plugins.

<entry> <record>164</record> <time>2019/08/23 12:49:52.191</time> <type>Error</type> <source>VisualStudio</source> <description>Construction of frame content failed.&#x000D;&#x000A;Frame identifier: ST:0:0:{a21b35ed-5c13-4d55-a3d2-71054c4e9540}&#x000D;&#x000A;Frame caption: Command Line Arguments&#x000D;&#x000A;Exception details:&#x000D;&#x000A;System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))&#x000D;&#x000A; at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid&amp; packageGuid, Int32 reason, Guid&amp; context)&#x000D;&#x000A; at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()&#x000D;&#x000A; at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()</description> </entry>

CelestialPanda42 avatar Aug 29 '19 08:08 CelestialPanda42

Which exact version of VS are you using? Does this error occur all the time? Did you try to create a new blank project (without SCM)?

Some people write on the internet that running VS as administrator once could fix this exception. Of course not in the context with our extension ;) So maybe give it a try.

MBulli avatar Sep 01 '19 10:09 MBulli

Running VS 2017 V.15.6.1.

This error occurs all the time under the following conditions: Any project, if I double click the .sln file and SmartCmdArgs window was visible/ docked as part of my preferences then this issue occurs. This issue does not occur if I open VS/ devenv.exe and then File->Open a Project or Solution. If SmartCmdArgs is enabled in extensions but not a visible window then there is no issue.

Running VS and opening Solutions as Admin does not fix issue.

It's an odd one for sure!

CelestialPanda42 avatar Sep 02 '19 08:09 CelestialPanda42