当我将“”添加到 ServiceDefinition.csdef 时,发布时无法启动:
<WebRole name="xxx" vmsize="Small" enableNativeCodeExecution="true">
<Runtime executionContext="elevated" />
<Sites>...
一切正常,消失了。需要添加它以在 Azure SDK 1.3 中指定机器 key ,如下所述:http://msdn.microsoft.com/en-us/library/gg494983.aspx
还有人遇到这种情况吗?
在管理员权限下运行会导致其他代码崩溃吗?当我进入 RDP 时,我在本地主机上运行时发现的错误与此无关,但它的代码在删除此运行时行时有效。
最佳答案
I just checked the Service Definition Schema and the Runtime element does not exist inside WebRole.
事实上确实如此。
<WebRole name="<web-role-name>" vmsize="[ExtraSmall|Small|Medium|Large|ExtraLarge]" enableNativeCodeExecution="[true|false]">
...
<Runtime executionContext="[limited|elevated]">
关于asp.net-mvc-2 - 当我将 "<Runtime executionContext="提升的“/>”添加到我的 Web 角色定义并尝试部署时,它无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4752238/