SignFile意外失败。你调用的对象是空的 [英] SignFile fails unexpectedly. Object reference not set to an instance of an object

查看:172
本文介绍了SignFile意外失败。你调用的对象是空的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当我尝试在VS2010中发布Word AddIn时出现以下错误。有人可以帮帮我吗?


 



错误 1
"SignFile"任务意外失败。


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


  在Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.SignFile(X509Certificate2 cert,Uri timestampUrl,String path)


  在Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.SignFile(String certThumbprint,Uri timestampUrl,String path)


  在Microsoft.Build.Tasks.SignFile.Execute()


  在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()


  在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,TaskHost taskHost,ItemBucket bucket,TaskExecutionMode howToExecuteTask,Boolean& taskResult)
InsentraAddIn


解决方案

Hi Insentra,


 


感谢您的帖子。


我认为这个问题与办公室开发人员更相关,我将移动它,


希望你能在那里得到更多有用的信息。


 


最好的问候,


Ziwei Chen


 


Hi,

I am getting the following error when I try to publish my Word AddIn in VS2010. Can anyone help me out please ?

 

Error 1 The "SignFile" task failed unexpectedly.

System.NullReferenceException: Object reference not set to an instance of an object.

   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.SignFile(X509Certificate2 cert, Uri timestampUrl, String path)

   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.SignFile(String certThumbprint, Uri timestampUrl, String path)

   at Microsoft.Build.Tasks.SignFile.Execute()

   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) InsentraAddIn


解决方案

Hi Insentra,

 

Thanks for your post.

I think this issue is more relevant to office dev, I'm going to move it,

hope you can get more useful information there.

 

Best Regards,

Ziwei Chen

 


这篇关于SignFile意外失败。你调用的对象是空的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆