c# - Azure 云服务未在部署中加载

标签 c# asp.net azure

我有一个 ASP.NET 应用程序,我正在尝试将其部署到 Azure 云。它在本地工作,但在我部署它时不起作用。下面是我的服务定义文件。证书“cuteanimals”是自行分配的,我已将其添加到 Azure 中。 网址是http://cuteanimals.cloudapp.net/

 <?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="ImageSharingWithCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2013-03.2.0">
  <WebRole name="WebRole" vmsize="Small">
    <Sites>
      <Site name="Web">
        <Bindings>
          <Binding name="Endpoint1" endpointName="EndpointHTTPS" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="EndpointHTTPS" protocol="https" port="443" certificate="cuteanimals" />
    </Endpoints>
    <Imports>
      <Import moduleName="Diagnostics" />
      <Import moduleName="RemoteAccess" />
    </Imports>
    <Certificates>
      <Certificate name="cuteanimals" storeLocation="LocalMachine" storeName="My" />
    </Certificates>
  </WebRole>
  <WorkerRole name="ImageValidation" vmsize="Small">
    <Imports>
      <Import moduleName="Diagnostics" />
      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />
    </Imports>
    <ConfigurationSettings>
      <Setting name="Microsoft.ServiceBus.ConnectionString" />
    </ConfigurationSettings>
    <Certificates>
    </Certificates>
  </WorkerRole>
</ServiceDefinition>

谢谢。

最佳答案

您仅在网站上打开了 https 端点。我已导航至 https://cuteanimals.cloudapp.net/看起来不错

您将需要为端口 80 添加另一个端点

关于c# - Azure 云服务未在部署中加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20331559/

相关文章:

c# - 为什么我的 ID 会随着互联网连接而改变?

c# - 检查屏幕锁定是否有密码

c# - 当通用不可用时尝试获取通用

c# - 读取所有行和单元格值动态表 asp.net

jquery - FF和IE加载JS有什么区别

Azure DF 参数化

c# - 为什么我无法在 Visual Studio 2010 中找到或使用 UrlEncode?

c# - 如何从我的自定义 C# 类调用 response.redirect

python - 使用 python 有条件删除 Azure blob 存储

azure - 无法从 Azure Cloud shell 连接到 AKS 群集