我尝试在Visual Studio 2015中创建的每个数据工厂应用程序,即使是样本,都无法构建或发布,原因如下:
"对象引用未设置为对象的实例。"每个.json文件都有错误。
我是否缺少一些重要的配置或需要添加到项目中的某些依赖项?感谢
答案 0 :(得分:2)
我们有一个开放的错误,并将在我们的下一个版本中修复。在构建期间抛出错误,但您仍然应该能够继续发布。我们将进一步研究这一点,看看为什么你也被阻止发布。感谢您的反馈!
答案 1 :(得分:1)
这是扩展中的一个错误。我在Visual Studio 2015中遇到同样的错误,但如果您从VS 2013打开此项目(需要下载separate extension),它应该正确构建和发布。
答案 2 :(得分:0)
重新安装Visual Studio的Azure SDK。
答案 3 :(得分:0)
我遇到了同样的问题。 Visual Studio 2015提供Microsoft Azure SDK 2.8.2作为更新,并告知当前安装的版本是2.8.1,当我尝试更新它时,Web Platform Installer告知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()
答案 4 :(得分:0)
我遇到了同样的问题,原因是机器上启用了fips算法政策。
解决:强>
通过regedit禁用FIPS Algoirthm策略并重新启动Visual Studio。
位置:强>
HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \控制\ LSA \ FipsAlgorithmPolicy