有时 - 不能建立Windows Azure云服务 - 对象引用不设置到对象的实例? [英] Sometimes - cannot build Windows Azure Cloud Service - Object reference not set to an instance of an object?
问题描述
我有,我已经得到了工人的作用,有些项目库和云服务的解决方案。有时候,我不能建立解决方案(无需更换光源$ C $ C或任何东西)。
I've got a solution where I've got worker role, some project library and cloud service. Sometimes I cannot build solution (without changing source code or anything).
输出窗口显示:
1>错误:未将对象引用设置到对象的实例。
==========生成:0成功,1失败,2个最新,0已跳过==========
1>Error: Object reference not set to an instance of an object. ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
当我尝试在云服务项目编辑工作者的角色的属性,我得到了弹出式窗口对象引用不设置到对象的实例。
When I try edit worker role properties in Cloud Service project, I got popup window "Object reference not set to an instance of an object".
当我尝试从云服务项目中移除工作者,我得到了弹出式窗口
When I try to remove worker from Cloud Service project, I got popup window
的Windows Azure工具为Microsoft Visual Studio。
"Windows Azure Tools for Microsoft Visual Studio.
服务定义或服务配置是无效的。请修复服务定义(.csdef)或服务配置(.cscfg)文件来执行此操作错误(S)。
The service definition or the service configuration is invalid. Please fix the error(s) in the service definition (.csdef) or service configuration (.cscfg) files to perform this action."
我不知道这是否与建立连接的问题 - 但是当构建工作这些问题也就不存在了,所以我可以假设,这是某种关联。
I'm not sure if it is connected with build problem - but when build is working those problems also not exist, so I can assume that this is somehow connected.
这很奇怪,因为我想不通,为什么有时它的工作,有时没有。
This is strange because I can't figure why sometimes it's working and sometimes not.
别人吗?
推荐答案
我可以通过卸载Azure项目,然后重新加载它来解决这个问题。
I was able to fix this problem by unloading the Azure project and then reloading it.
- 右键单击该Azure项目。
- 单击卸载项目。
- 右键单击再次Azure项目。
- 单击刷新工程。
更新
这只是发生在我身上一次这些步骤还不够,我不得不关闭Visual Studio并再次打开它。
This just happened to me again and these steps were not enough, I had to close Visual Studio and open it again.
这篇关于有时 - 不能建立Windows Azure云服务 - 对象引用不设置到对象的实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!