Azure为什么在cspkg中找不到IISConfigurator.exe? [英] Why can't Azure find IISConfigurator.exe in my cspkg?

查看:98
本文介绍了Azure为什么在cspkg中找不到IISConfigurator.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure 2.5 SDK上载cspkg + cscfg,以在Azure中创建新的Web角色部署.当我这样做时,我看到以下错误,其状态为 BadRequest .

I am using the Azure 2.5 SDK to upload a cspkg + cscfg to create a new web role deployment in Azure. When I do, I see the following error with status BadRequest.

{"BadRequest:提供的文件不是有效的服务包.详细的错误代码:{0}无效的应用程序运行时-缺少运行时组件:/base/x64/IISConfigurator.exe."}

{"BadRequest : The file provided is not a valid service package. Detailed error code: {0} Invalid application runtime - a runtime component is missing:/base/x64/IISConfigurator.exe."}

其中{0}是角色/项目名称.

Where {0} is the role/project name.

但是,当我检查cspkg文件的内容时,base/x64目录确实包含IISConfigurator.exe.

However, when I inspect the contents of my cspkg file, the base/x64 directory DOES contain IISConfigurator.exe.

我还注意到,RoleModel.xml文件已通过打包修改为包含IISConfigurator.exe任务,如下所示:

I also notice that the RoleModel.xml file has been modified by packaging to contain an IISConfigurator.exe task as follows:

<RoleModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CacheExtension" version="2.5.6496.10" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <Startup>
    <Task commandLine="IISConfigurator.exe" executionContext="elevated" relativePath="base\x64">
      <Environment>
        <Variable name="_IISCONFIGURATOR_SETUP_URL_REWRITE_" value="true" />
        <Variable name="_IISCONFIGURATOR_CLEAN_SERVER_ONSTARTUP_" value="true" />
        <Variable name="RdModuleName" value="IISConfigurator" />
      </Environment>
    </Task>

所以我的问题是:此错误消息的真正原因是什么?

So my question is: What is the real cause of this error message?

其他可能的线索: 我在cspkg中的RoleModel.xml还包含:

Additional possible clues: My RoleModel.xml in the cspkg also contains:

<Property name="TargetFrameworkVersion" value="v4.5.1" />
<Property name="RoleType" value="Web" />
<Property name="Configuration" value="Debug" />
<Property name="Platform" value="AnyCPU" />
<Property name="SetConfiguration" value="Configuration=Debug" />
<Property name="SetPlatform" value="Platform=AnyCPU" />
<Property name="RoleTargetFramework" value="v4.5.1" />
<Property name="TargetRuntimeVersion" value="v4.0" />

推荐答案

Tim,我们只看到过两次此问题,而升级到SDK 2.5.1的开发人员是这个问题.在这些开发人员卸载Azure SDK并重新安装SDK 2.5之前,我们从未能够重现该问题,也没有找到根本原因.

Tim, we have seen this issue only twice, and it was with developers who had upgraded to SDK 2.5.1. We were never able to reproduce the problem and we didn't find the root cause before those developers uninstalled the Azure SDK and reinstalled SDK 2.5 which caused the issue to go away.

您可以尝试卸载并重新安装Azure SDK吗?您还可以尝试刚刚发布的SDK 2.6.

Can you try uninstalling and reinstalling the Azure SDK? You could also try SDK 2.6 which was just released.

这篇关于Azure为什么在cspkg中找不到IISConfigurator.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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