Azure的部署虚拟目录 [英] Azure deployment virtual directory

查看:933
本文介绍了Azure的部署虚拟目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

增加了一个新的蔚蓝部署项目到我的web应用程序和部署是全成。

Added a new azure deployment project to my web application and deploy was successfull.

添加一个虚拟目录ServiceDefinition.csfef后的应用程序保持骑自行车,所以我用蔚蓝色的控制台中删除实例和成功,并与虚拟目录再部署。

After adding a virtual directory to ServiceDefinition.csfef the application remains cycling, so I deleted the instance using azure console and deployed again with success and with the virtual directory.

当我访问该网站,我得到一个页面:

When I access the site I get a page with:

服务不可用

HTTP错误503服务不可用。

HTTP Error 503. The service is unavailable.

分析的IntelliTrace后得到了这样的信息:

After analysing intellitrace got this message:

https://picasaweb.google.com/112383217404623421937/Dropbox#5748710219235327730

在事件查看器:

警告:

应用程序'/'属于站点'1'具有无效的AppPoolId默认应用集。因此,应用程序将被忽略。

The application '/' belonging to site '1' has an invalid AppPoolId 'DefaultAppPool' set. Therefore, the application will be ignored.

站点1被禁用,因为站点定义的根应用程序无效。请参阅为什么根应用程序无效信息previous事件日志消息。

Site 1 was disabled because the root application defined for the site is invalid. See the previous event log message for information about why the root application is invalid.

文件服务器资源管理器无法枚举共享路径或DFS路径。从本地文件路径映射到共享和DFS路径可能不完整或暂时不可用。 FSRM将在稍后的时间重试操作。

File Server Resource Manager failed to enumerate share paths or DFS paths. Mappings from local file paths to share and DFS paths may be incomplete or temporarily unavailable. FSRM will retry the operation at a later time.

帮助?

推荐答案

这是你分享什么,我认为有几个值得关注。首先,我认为当Azure上运行的应用程序的目录位置将是正确的,或者你没有添加在您的项目,这就是为什么目录是present有..

This is what you shared and I think there are couple of concern. First I think your directory location will be correct when app running on Azure or you haven't added any content in your project that's why directories are present there..

<Site name="PT" physicalDirectory="..\RIS2048.ConsultaClick.WWWPacientes"> 
<VirtualDirectory name="images" physicalDirectory="..\RIS2048.ConsultaClick.WWWPacientes\imgpt" /> 
<Bindings> 
 <Binding name="Endpoint1" endpointName="Endpoint1" hostHeader="pt.consultaclick.com" /> 
</Bindings> 
</Site>

接下来,因为你是在解析主机头,这使得网站分化为应用程序,因此最好是有虚拟应用程序的设置以及它的要求。

Next because your are parsing the request on host header, which makes website to differentiate into applications so it is best to have Virtual Application setting along with it.

否则,你真的需要有至少两个站点,并设置两个绑定。您pt.consultaclick.com一个装订等任何其他剩余的主机头,否则你的网站将成为基于主机头非常有限的请求。

Otherwise you really need to have minimum two sites and set two bindings. One binding for your pt.consultaclick.com and other for any other remaining host header otherwise your site will serve very limited requests based on host header.

我喜欢的这个博客这严重细节肯定会帮你解释这个博客。我这个<一个href=\"http://blogs.msdn.com/b/avkashchauhan/archive/2011/01/01/windows-azure-how-to-define-virtual-directories-in-service-definition-csdef-for-your-site.aspx\"相对=nofollow>博客有一些这方面的信息。

I like this blog which explained this blog in serious details which sure will help you. My this blog has some info on this regard.

这篇关于Azure的部署虚拟目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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