【发布时间】:2016-01-28 13:56:14
【问题描述】:
我尝试在 Visual Studio 2015 中创建的每个数据工厂应用程序,甚至是示例应用程序,都无法构建或发布,原因是:
“对象引用未设置为对象的实例。”每个 .json 文件都有错误。
我是否缺少一些重要的配置或需要添加到项目中的一些依赖项?谢谢
【问题讨论】:
标签: visual-studio azure azure-data-factory cortana-intelligence
我尝试在 Visual Studio 2015 中创建的每个数据工厂应用程序,甚至是示例应用程序,都无法构建或发布,原因是:
“对象引用未设置为对象的实例。”每个 .json 文件都有错误。
我是否缺少一些重要的配置或需要添加到项目中的一些依赖项?谢谢
【问题讨论】:
标签: visual-studio azure azure-data-factory cortana-intelligence
我们对此有一个未解决的错误,并将在我们的下一个版本中修复。在构建过程中会引发错误,但您仍然应该能够继续发布。我们将对此进行进一步调查,以了解为什么您也被阻止发布。感谢您的反馈!
【讨论】:
这是扩展程序中的错误。我在 Visual Studio 2015 中遇到了同样的错误,但如果你从 VS 2013 打开这个项目(你需要下载 separate extension),它应该可以正确构建和发布。
【讨论】:
重新安装 Azure SDK for Visual Studio。
【讨论】:
我也有同样的问题。 Visual Studio 2015 提供 Microsoft Azure SDK 2.8.2 作为更新,并告诉当前安装的版本是 2.8.1,当我尝试更新它时,Web 平台安装程序告诉 2.8.2 已安装并拒绝再次安装。
此外,当我尝试重建 DataFactory 项目时,我收到以下警报。
查看日志,我发现以下消息:
Microsoft.VisualStudio.Composition.CompositionFailedException: An exception was thrown while initializing part "Microsoft.VisualStudio.JSON.Package.Schema.CatalogJSONSchemaSelector".
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Html.Package.Host.IdleTimeSource..ctor() at Microsoft.VisualStudio.Html.Package.Host.VsWebEditorHost..ctor()
--- End of inner exception stack trace
--- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at Microsoft.Web.Editor.Host.WebEditor.get_Host() at Microsoft.Web.Editor.Host.WebEditor.GetSettings(String contentTypeName) at Microsoft.JSON.Editor.Settings.JSONSettings.get_Storage() at Microsoft.JSON.Editor.Settings.JSONSettings.get_SchemaCatalogs() at Microsoft.VisualStudio.JSON.Package.Schema.CatalogJSONSchemaSelector..ctor()
--- End of inner exception stack trace
--- at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass53_0.<CreateExport>b__0() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value() at Microsoft.VisualStudio.Composition.NetFxAdapters.MefV1ExportProvider.<>c__DisplayClass12_0.<UnwrapExport>b__1() at System.ComponentModel.Composition.Primitives.Export.GetExportedValueCore() at System.ComponentModel.Composition.Primitives.Export.get_Value() at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export) at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass11_0`2.<CreateStronglyTypedLazyOfTM>b__1() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value() at Microsoft.Web.Editor.Composition.ComponentLocatorWithOrderingAndUnorderedParts`1.ImportMany()
【讨论】:
我遇到了同样的问题,这是因为机器上启用了fips 算法策略。
分辨率:
通过 regedit 禁用 FIPS 算法策略并重新启动 Visual Studio。
地点:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa\FipsAlgorithmPolicy
【讨论】: