更新到Azure SDK 3.0后,Logic App Designer会产生错误:
Object reference not set to an instance of an object
如果我右键单击LogicApp.json并选择“使用Logic App Designer打开”,即使在新项目中也会发生这种情况。
我已卸载所有Azure扩展程序并重新安装但没有运气。
当我浏览活动日志时,我发现了这些:
<entry>
<record>657</record>
<time>2017/03/09 20:36:24.976</time>
<type>Error</type>
<source>Microsoft.Azure.LogicApp.VSCommon.Logging.ActivityLogWriter</source>
<description>EditorPane.IPersistFileFormat.Load: Unexpected error occurred., Exception Details: System.NullReferenceException, Object reference not set to an instance of an object., at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.get_MruSource()
 at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.<>c__DisplayClass52_0.<Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load>b__0()
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)</description>
和
<entry>
<record>658</record>
<time>2017/03/09 20:36:24.976</time>
<type>Error</type>
<source>Microsoft.Azure.LogicApp.VSCommon.Logging.ActivityLogWriter</source>
<description>EditorPane.IPersistFileFormat.Load: Unexpected error occurred., Exception Details: System.NullReferenceException, Object reference not set to an instance of an object., at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.get_MruSource()
 at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.<>c__DisplayClass52_0.<Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load>b__0()
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, Func`1 function)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load(String pszFilename, UInt32 grfMode, Int32 fReadOnly)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.<>c__DisplayClass75_0.<Microsoft.VisualStudio.Shell.Interop.IVsPersistDocData.LoadDocData>b__0()
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)</description>
和
<entry>
<record>666</record>
<time>2017/03/09 20:36:29.591</time>
<type>Error</type>
<source>Microsoft.Azure.LogicApp.VSCommon.Logging.ActivityLogWriter</source>
<description>EditorPane.IPersistFileFormat.Load: Unexpected error occurred., Exception Details: System.NullReferenceException, Object reference not set to an instance of an object., at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.get_MruSource()
 at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.<>c__DisplayClass52_0.<Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load>b__0()
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)</description>
和
<entry>
<record>667</record>
<time>2017/03/09 20:36:29.591</time>
<type>Error</type>
<source>Microsoft.Azure.LogicApp.VSCommon.Logging.ActivityLogWriter</source>
<description>EditorPane.IPersistFileFormat.Load: Unexpected error occurred., Exception Details: System.NullReferenceException, Object reference not set to an instance of an object., at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.get_MruSource()
 at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.<>c__DisplayClass52_0.<Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load>b__0()
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, Func`1 function)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load(String pszFilename, UInt32 grfMode, Int32 fReadOnly)
 at Microsoft.Azure.LogicApp.VSEditor.EditorPane.<>c__DisplayClass75_0.<Microsoft.VisualStudio.Shell.Interop.IVsPersistDocData.LoadDocData>b__0()
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)</description>
和
<entry>
<record>668</record>
<time>2017/03/09 20:36:29.591</time>
<type>Error</type>
<source>Microsoft.Azure.LogicApp.VSCommon.Logging.ActivityLogWriter</source>
<description>VsPackageMenuProvider.MenuCommandBeforeQueryStatus: Unexpected error occurred., Exception Details: System.NullReferenceException, Object reference not set to an instance of an object., at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
 at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
 at Microsoft.VisualStudio.Shell.VsShellUtilities.OpenDocumentWithSpecificEditor(IServiceProvider provider, String fullPath, Guid editorType, Guid logicalView, IVsUIHierarchy& hierarchy, UInt32& itemID, IVsWindowFrame& windowFrame)
 at Microsoft.VisualStudio.Shell.VsShellUtilities.OpenDocumentWithSpecificEditor(IServiceProvider provider, String fullPath, Guid editorType, Guid logicalView)
 at Microsoft.Azure.LogicApp.VSEditor.VsPackageMenuProvider.<MenuCommandCallback>b__7_0()
 at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError(String operationName, String message, Action action)</description>
如何解决此问题?