我已经阅读了多篇文章和SO问题,例如 - this, this, 和this(以及许多其他文章)。
然而,它们都无法解决我的问题。我想在一个云服务中部署两个Web角色。我尝试部署相同的内容,但发现其中一个正在运行,而另一个Web角色会抛出“Internet Explorer无法显示网页/ Firefox连接超时”的错误信息。
以下是我迄今为止尝试过的方法: -
我有两个Web角色(App和Service),当我将App或Service部署到云服务(例如http://xxxx.cloudapp.net)时,它可以正常工作。
这里我错过了什么?
然而,它们都无法解决我的问题。我想在一个云服务中部署两个Web角色。我尝试部署相同的内容,但发现其中一个正在运行,而另一个Web角色会抛出“Internet Explorer无法显示网页/ Firefox连接超时”的错误信息。
以下是我迄今为止尝试过的方法: -
我有两个Web角色(App和Service),当我将App或Service部署到云服务(例如http://xxxx.cloudapp.net)时,它可以正常工作。
但是当我尝试在http://xxxx.cloudapp.net上部署端口为8080的应用程序和端口为80的服务,并尝试浏览-http://xxxx.cloudapp.net时,它显示服务页面。
然而,在使用http://xxxx.cloudapp.net:8080浏览应用程序时,它会抛出错误-Internet Explorer无法显示网页/ Firefox连接超时。
但是,当只部署应用程序时,我的应用程序可以正常工作。
这是ServiceDefinition文件:-
<ServiceDefinition name="AppServiceAzure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2013-03.2.0">
<WebRole name="MyService" vmsize="Small">
<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="80" />
</Endpoints>
<Imports>
<Import moduleName="Diagnostics" />
</Imports>
<Certificates>
<Certificate name="mycert" storeLocation="LocalMachine" storeName="My" />
</Certificates>
</WebRole>
<WebRole name="MyApp" vmsize="Small">
<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="8080" />
</Endpoints>
<Imports>
<Import moduleName="Diagnostics" />
</Imports>
<Certificates>
<Certificate name="mycert" storeLocation="LocalMachine" storeName="My" />
</Certificates>
</WebRole>
</ServiceDefinition>
这里我错过了什么?