Azure部署与2个网站是骑自行车很长一段时间 [英] Azure deployment with 2 websites is cycling for a long time

查看:230
本文介绍了Azure部署与2个网站是骑自行车很长一段时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



只有1个网站,部署成功运行。

p>

帮助!!!!!!!!!

  xml version =1.0encoding =utf-8?> 
< ServiceDefinition name =RIS2048.ConsultaClick.Web.Azure1xmlns =http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition>
< WebRole name =RIS2048.ConsultaClick.Webvmsize =Small>
< Sites>
< Site name =PTphysicalDirectory =.. \RIS2048.ConsultaClick.WWWPacientes>
< VirtualDirectory name =imagesphysicalDirectory =.. \RIS2048.ConsultaClick.WWWPacientes\imgpt/>
< Bindings>
< Binding name =Endpoint1endpointName =Endpoint1hostHeader =pt.consultaclick.com/>
< / Bindings>
< / Site>
< Site name =ROphysicalDirectory =.. \RIS2048.ConsultaClick.WWWPacientes>
< VirtualDirectory name =imagesphysicalDirectory =.. \RIS2048.ConsultaClick.WWWPacientes\imgro/>
< Bindings>
< Binding name =Endpoint1endpointName =Endpoint1hostHeader =ro.consultaclick.com/>
< / Bindings>
< / Site>
< / Sites>
< Endpoints>
< InternalEndpoint name =Endpoint1protocol =httpport =80/>
< / Endpoints>
< Imports>
< Import moduleName =Diagnostics/>
< Import moduleName =RemoteAccess/>
< Import moduleName =RemoteForwarder/>
< / Imports>
< / WebRole>
< / ServiceDefinition>

使用Intellitrace和远程桌面后,在事件查看器中找到以下内容:



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



在系统部分:



NtpClient无法设置手动对等体作为时间源,因为的DNS解析错误'time.windows.com,0x9'。 NtpClient将在15分钟内再次尝试,此后再次尝试间隔
。错误是:没有这样的主机是已知的。 (0x80072AF9)



VSP拒绝尝试使用协议版本'3.2'。



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



因为为该站点定义的根应用程序无效,所以站点1被禁用。有关为什么根应用程序无效的信息,请参阅上一个事件日志消息。



与假脱机程序系统服务通信时出错。打开服务管理单元并确认Print Spooler服务正在运行。



SLUINotify服务终止并出现以下错误:
指定的模块不能



Azure部分:



发生未处理的异常。进程ID:3024
进程名称:WaIISHost
主题ID:1
AppDomain未处理的异常
异常:E:\sitesroot\3



服务器堆栈跟踪:
在System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(消息回复,MessageFault故障,字符串操作,MessageVersion版本,FaultConverter faultConverter)
在System.ServiceModel.Channels .ServiceChannel.HandleReply(ProxyOperationRuntime操作,ProxyRpc& rpc)
在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime操作,Object [] ins,Object []outs,TimeSpan timeout)
在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime操作,Object [] ins,Object []outs)
在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall ,ProxyOperationRuntime操作)
在System.ServiceModel.Channels.ServiceChannelPro xy.Invoke(IMessage message)



在[0]上重新抛出异常的异常:
在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32类型)
在IConfigurator.Deploy(String roleId,WebAppModel webAppModelPath,String roleRootDirectory,String sitesDestinationRootDirectory,String diagnosticsRootDirectory,String roleGuid,Dictionary 2 globalEnvironment)
在ConfiguratorClient.Deploy (String roleId,WebAppModel webAppModelPath,String roleRootDirectory,String sitesDestinationRootDirectory,String diagnosticsRootDirectory,String roleGuid,Dictionary
2 globalEnvironment)
在Microsoft.WindowsAzure.Hosts.WaIISHost.Program.Main(String [] args)

解决方案

问题是我正在解析主机头(pt.example.com)上的请求,并从cck访问.azure.com所以主机标题是无效的(我应该从pt.example.com访问,并有一个域,我买了重定向pt.example.com cck.azure.com).......


I'm deploying with azure in visual studio 2010 and I have this problem when I have 2 websites.

With only 1 website the deploy runs sucessfully.

Help!!!!!!!!!

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="RIS2048.ConsultaClick.Web.Azure1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <WebRole name="RIS2048.ConsultaClick.Web" vmsize="Small">
    <Sites>
      <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>
      <Site name="RO" physicalDirectory="..\RIS2048.ConsultaClick.WWWPacientes">
        <VirtualDirectory name="images" physicalDirectory="..\RIS2048.ConsultaClick.WWWPacientes\imgro" />
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" hostHeader="ro.consultaclick.com" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InternalEndpoint name="Endpoint1"  protocol="http" port="80" />
   </Endpoints>
    <Imports>
      <Import moduleName="Diagnostics" />
      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />
    </Imports>
  </WebRole>
</ServiceDefinition>

After using intellitrace and remote desktop found the following in event viewer:

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

In system section:

NtpClient was unable to set a manual peer to use as a time source because of DNS resolution error on 'time.windows.com,0x9'. NtpClient will try again in 15 minutes and double the reattempt interval thereafter. The error was: No such host is known. (0x80072AF9)

VSP rejected attempt to use protocol version '3.2'.

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

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.

Error communicating with the Spooler system service. Open the Services snap-in and confirm that the Print Spooler service is running.

The SLUINotify service terminated with the following error: The specified module could not be found.

Azure section:

An unhandled exception occurred. Process ID: 3024 Process Name: WaIISHost Thread ID: 1 AppDomain Unhandled Exception Exception: E:\sitesroot\3

Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at IConfigurator.Deploy(String roleId, WebAppModel webAppModelPath, String roleRootDirectory, String sitesDestinationRootDirectory, String diagnosticsRootDirectory, String roleGuid, Dictionary2 globalEnvironment) at ConfiguratorClient.Deploy(String roleId, WebAppModel webAppModelPath, String roleRootDirectory, String sitesDestinationRootDirectory, String diagnosticsRootDirectory, String roleGuid, Dictionary2 globalEnvironment) at Microsoft.WindowsAzure.Hosts.WaIISHost.Program.Main(String[] args)

解决方案

The problem was that I was parsing the request on host header (pt.example.com) and accessing from cck.azure.com so the host header was invalid (I should access from pt.example.com and have a domain that I bought redirecting pt.example.com to cck.azure.com).......

这篇关于Azure部署与2个网站是骑自行车很长一段时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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