Publish Errors on any project

点点圈 提交于 2019-12-12 22:19:19

问题


tried to publish a nopcommerce 3.9 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.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.d__1.MoveNext()

and i haven't installed SQL Server yet on my pc,haven't installed NopCommerce on my pc either and never made any changes to the source code

Edit:it's not duplicate of another question because in that case i would have gotten a run time error this happens when i want to publish it and the program runs just fine and my problem is in publish scenario


回答1:


VS 2017 V15.5.5 has a bug in publishing try updating your VS




回答2:


You are referencing a path to publish your code in the middle of nowhere. Just check the path and you should be fine.




回答3:


Change the target location in publish profile, this error occurs when same folder used for more than one project.




回答4:


Check if you have "could not find" files in your project



来源:https://stackoverflow.com/questions/48718645/publish-errors-on-any-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!