Logic App Designer错误 - 未将对象引用设置为对象的实例

时间:2017-03-09 21:31:38

标签: visual-studio-2015 azure-logic-apps

更新到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()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.&lt;&gt;c__DisplayClass52_0.&lt;Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load&gt;b__0()&#x000D;&#x000A;   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()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.&lt;&gt;c__DisplayClass52_0.&lt;Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load&gt;b__0()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, Func`1 function)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load(String pszFilename, UInt32 grfMode, Int32 fReadOnly)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.&lt;&gt;c__DisplayClass75_0.&lt;Microsoft.VisualStudio.Shell.Interop.IVsPersistDocData.LoadDocData&gt;b__0()&#x000D;&#x000A;   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()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.&lt;&gt;c__DisplayClass52_0.&lt;Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load&gt;b__0()&#x000D;&#x000A;   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()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.Utilities.ArmToolsMruPopulator.AddMenuEntry(String userAccountId, String subscriptionId, String resourceGroupName)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.LoadFlowResourceFromResourceTemplate()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.&lt;&gt;c__DisplayClass52_0.&lt;Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load&gt;b__0()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, String message, Func`1 function)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError[T](String operationName, Func`1 function)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat.Load(String pszFilename, UInt32 grfMode, Int32 fReadOnly)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.EditorPane.&lt;&gt;c__DisplayClass75_0.&lt;Microsoft.VisualStudio.Shell.Interop.IVsPersistDocData.LoadDocData&gt;b__0()&#x000D;&#x000A;   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)&#x000D;&#x000A;   at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.VsShellUtilities.OpenDocumentWithSpecificEditor(IServiceProvider provider, String fullPath, Guid editorType, Guid logicalView, IVsUIHierarchy&amp; hierarchy, UInt32&amp; itemID, IVsWindowFrame&amp; windowFrame)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.VsShellUtilities.OpenDocumentWithSpecificEditor(IServiceProvider provider, String fullPath, Guid editorType, Guid logicalView)&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSEditor.VsPackageMenuProvider.&lt;MenuCommandCallback&gt;b__7_0()&#x000D;&#x000A;   at Microsoft.Azure.LogicApp.VSCommon.Logging.Logger.LogUnhandledExceptionAsError(String operationName, String message, Action action)</description>

如何解决此问题?

0 个答案:

没有答案