Hi Dojo... since upgrading to a new computer, I'm getting an Unhandled Dispatcher Exception when I try to use the Edit QAction feature of DIS (full error message below). I'm sure I'm just missing some reference or something, but I've been unable to determine what. I'm using DIS 2.32.1.15 which I believe is current. I've trying uninstalling and reinstalling DIS, but that didn't help.
Any thoughts?
System.ServiceModel.FaultException:
Message="System.MissingMethodException: Method not found: 'Void Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions..ctor(Microsoft.CodeAnalysis.OutputKind, Boolean, System.String, System.String, System.String, System.Collections.Generic.IEnumerable`1<System.String>, Microsoft.CodeAnalysis.OptimizationLevel, Boolean, Boolean, System.String, System.String, System.Collections.Immutable.ImmutableArray`1<Byte>, System.Nullable`1<Boolean>, Microsoft.CodeAnalysis.Platform, Microsoft.CodeAnalysis.ReportDiagnostic, Int32, System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.String,Microsoft.CodeAnalysis.ReportDiagnostic>>, Boolean, Boolean, Microsoft.CodeAnalysis.XmlReferenceResolver, Microsoft.CodeAnalysis.SourceReferenceResolver, Microsoft.CodeAnalysis.MetadataReferenceResolver, Microsoft.CodeAnalysis.AssemblyIdentityComparer, Microsoft.CodeAnalysis.StrongNameProvider, Boolean)'.
at SLDisClassLibrary.ClassLibraryHelper.CreateCompilation(String name, IEnumerable`1 syntaxTrees, ICollection`1 extraDLLs, ICollection`1 includeCompilations)
at SLDisClassLibrary.ClassLibraryCompilation.CreateCompilation(IDllImportResolver dllImportResolver)
at SLDisClassLibrary.ClassLibraryCompilation..ctor(ClassLibraryPackage basePackage, ICollection`1 customPackages, IDllImportResolver dllImportResolver)
at SLDisClassLibraryService.SLDisClassLibraryService.GetCompilationCached(ClassLibraryPackage basePackage, ICollection`1 customPackages, IDllImportResolver resolver)
at SLDisClassLibraryService.SLDisClassLibraryService.GetAllCustomDllImports(ClassLibraryPackage basePackage, ICollection`1 customPackages)"
Source="mscorlib"
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SLDisClassLibraryShared.Interfaces.ISLDisClassLibraryService.GetAllCustomDllImports(ClassLibraryPackage basePackage, ICollection`1 customPackages)
at Skyline.VSX.ProtocolEditor.QActions.QActionProjectFactory.GenerateLibraryProject(ProtocolDocument document, Boolean isSolutionBased)
at Skyline.VSX.ProtocolEditor.QActions.QActionProjectFactory.GetOrCreateQActionProject(ProtocolDocument document, QAction qaction, IList`1 allQActions)
at Skyline.VSX.ProtocolEditor.QActions.QActionEditorHelper.OpenQAction(ProtocolDocument document, QAction qaction, IList`1 allQActions, Boolean buildProject, Boolean openInEditor)
at Skyline.VSX.ProtocolEditor.Tagging.XmlProtocolActionTagAdornment.<>c__DisplayClass55_1.<OpenQActionAction>b__1()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
This kind of exceptions typically occur when not all updates of Visual Studio are installed. Would it please be possible to check if there are updates available?
These are currently the latest version:
- VS2017: 15.9.34
- VS2019: 16.9.2
Hi Tom, this was indeed the issue. I am running VS2015 and found that I was on VS2015 Update 1, while VS2015 Update 3 is the most up to date. I was able to download the latest installer from here: https://my.visualstudio.com/Downloads?q=visualstudio2015 and I can once again edit quick actions!!! Thanks for the pointer in the right direction.