本文介绍了发布遇到错误对象引用未设置为对象的实例诊断日志已写入以下位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试发布任何项目应用程序时在我的服务器上,我收到了这个错误



发布遇到错误对象引用未设置为对象实例 已写入诊断日志到以下位置 








日志文件:

System.NullReferenceException:
对象引用未设置为对象的实例。


   at Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.DefaultPublishTabProvider.InitializeProvider(IVsHierarchy
hierarchy)


   at Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.DefaultPublishTabProvider。< CreateViewAsync> d__0.MoveNext()

---堆栈跟踪结束
来自抛出异常的先前位置---


   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)


   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)


   at Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.ManagedPublishProvider。< CreateViewAsync> d__1.MoveNext()

解决方案

when i try to publish any project app on my server and i got this error

publish has encountered an error Object reference not set to an instance of an object A diagnostic log has been written to following location 




Log File:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.DefaultPublishTabProvider.InitializeProvider(IVsHierarchy hierarchy)
   at Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.DefaultPublishTabProvider.<CreateViewAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.ManagedPublishProvider.<CreateViewAsync>d__1.MoveNext()

解决方案


这篇关于发布遇到错误对象引用未设置为对象的实例诊断日志已写入以下位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 00:08