我在visual studio 2010中使用azure进行部署,当我有两个网站时,我遇到了这个问题。
只需要1个网站,部署就可以成功运行。
救命!
<?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>使用智能竞赛和远程桌面后,在事件查看器中找到以下内容:
https://picasaweb.google.com/112383217404623421937/Dropbox#
在系统部分中:
由于'time.windows.com,0x9‘上的NtpClient解析错误,无法将手动对等项设置为时间源。NtpClient将在15分钟后重试,然后将重试间隔增加一倍。错误是:不知道这样的主机。(0x80072AF9)
VSP拒绝了使用协议版本'3.2‘的尝试。
属于站点“%1”的应用程序“/”设置了无效的AppPoolId“DefaultAppPool”。因此,该应用程序将被忽略。
站点%1被禁用,因为为该站点定义的根应用程序无效。有关根应用程序无效原因的信息,请参阅前面的事件日志消息。
与后台处理程序系统服务通信时出错。打开“服务”管理单元并确认打印后台处理程序服务正在运行。
SLUINotify服务终止,错误如下:找不到指定的模块。
Azure部分:
发生了未处理的异常。进程ID: 3024进程名称:sitesroot线程ID: 1 AppDomain未处理异常: E:\sitesroot\3
服务器堆栈跟踪:在System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message操作处的System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime回复、MessageVersion错误、字符串操作、FaultConverter版本、faultConverter)在System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime操作处、布尔单向、ProxyOperationRuntime操作、Object[]输入、Object[]输出、TimeSpan超时)在MessageFault操作、布尔单向、Object[]操作、在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage消息处的Object[] outs),在System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage methodCall处的ProxyOperationRuntime操作)
在以下位置重新抛出异常: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage msgData,Int32类型) 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 args args)
发布于 2012-06-06 19:47:38
问题是我正在解析主机报头( pt.example.com )上的请求,并从cck.azure.com访问,因此主机报头无效(我应该从pt.example.com访问,并且有一个我购买的域名,将pt.example.com重定向到cck.azure.com)......
发布于 2012-05-31 01:59:22
您应该尝试找出导致问题的原因。您是否可以尝试配置远程桌面并连接到您的某个实例?验证事件查看器,查看应用程序日志中是否有任何错误或警告。
在这些情况下,我经常遇到由于循环而与远程桌面会话断开的情况,但您仍然应该尝试一下,如果运气好的话,您将能够找到问题的原因。
或者,您可以尝试将DiagnosticsManager配置为每隔1分钟发送一次Windows日志,以跟踪该问题。
https://stackoverflow.com/questions/10821356
复制相似问题