难道Azure的1.8(2012年10月)更改配置在ServiceDefinition多个站点的方式吗? [英] Did Azure 1.8 (Oct 2012) change the way you configure multiple sites in the ServiceDefinition?

查看:124
本文介绍了难道Azure的1.8(2012年10月)更改配置在ServiceDefinition多个站点的方式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到1.8(2012年10月)之前,这就是我们在ServiceDefinition配置了网站。

Before upgrading to 1.8 (Oct 2012) this is how we configured our sites in the ServiceDefinition.

<Site name="Admin" physicalDirectory="..\Company.Admin">
  <Bindings>
    <Binding name="AdminBindingHttp" endpointName="HttpEndpoint" hostHeader="admin.company.com" />
  </Bindings>
</Site>

我们升级尝试发布时,我收到以下错误后。

After we upgraded I was getting the following error when trying to publish.

Error 125 Cannot find the physical directory 'C:\Users\Me\Code\Company.Cloud\bin\Company.Admin' for virtual path Admin/.

我们不得不更新 physicalDirectory 值和向上移动2个文件夹。

We had to update the physicalDirectory value and move up 2 more folders.

<Site name="Admin" physicalDirectory="..\..\..\Company.Admin">
  <Bindings>
    <Binding name="AdminBindingHttp" endpointName="HttpEndpoint" hostHeader="admin.company.com" />
  </Bindings>
</Site>

看来,previous 1.8 Azure在该csdef文件的原始位置的情况下执行了,但现在它是从执行的斌\\发布\\ ServiceDefinition.csdef中的这2个文件夹更深

我一直在寻找一个在线教程,专门谈到了最新的SDK版本使用此功能不成功。这是一个官方的变化?我还要提到的是,我们也同时升级到VS 2012

I've been unsuccessful at finding a tutorial online that specifically talks about this feature used with the latest SDK version. Was this an official change? I should also mention that we also upgraded to VS 2012 at the same time.

我觉得这个功能在不断地被忽视。 (见缺少的.config转换问题)。我们愿意切换到Azure的网站,但我们无法这样做,直到SSL / HTTPS可用,但超出preVIEW的。

I feel like this feature is constantly neglected. (See lack of .config transforms issue). We would love to switch to Azure WebSites but we're unable to do so until SSL/HTTPS is available and it is out of preview.

推荐答案

是的,这是一个正式的变化,但什么是包含在升级报告我找不到关于它比其他任何文档:

Yes, this was an official change, but I can't find any documentation about it other than what is contained in the upgrade report:

的网站元素的physicalDirectory属性.. \\ MyWebRole'包含一个相对路径,这个路径是相对于在包装当目标服务定义文件驻留在previous版本这个文件所在的目录项目根目录之内。在这个版本中,默认情况下,该文件位于项目输出目录,您可能需要更新的相对路径,以反映目标服务定义文件的新位置。

"The physicalDirectory attribute '..\MyWebRole' of the Site element contains a relative path. This path is relative to the directory in which the target Service Definition file resides when packaged. In previous versions this file was located within the root project directory. In this version, by default, this file is located in the project output directory. You may need to update the relative path to reflect the new location of the target Service Definition file."

这篇关于难道Azure的1.8(2012年10月)更改配置在ServiceDefinition多个站点的方式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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