服务结构:本地群集禁止访问403

时间:2019-02-16 03:29:17

标签: azure-service-fabric

我向我现有的asp.net MVC Web应用程序添加了业务流程容器支持。当我部署到本地集群并访问应用程序集群URL时,出现以下错误

403-禁止访问:被拒绝。 您无权使用提供的凭据查看此目录或页面。

服务清单文件

<?xml version="1.0" encoding="utf-8"?>
<ServiceManifest Name="ManagementPkg"
                 Version="1.0.0"
                 xmlns="http://schemas.microsoft.com/2011/01/fabric"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ServiceTypes>
    <!-- This is the name of your ServiceType.
         The UseImplicitHost attribute indicates this is a guest service. -->
    <StatelessServiceType ServiceTypeName="ManagementType" UseImplicitHost="true" />
  </ServiceTypes>

  <!-- Code package is your service executable. -->
  <CodePackage Name="Code" Version="1.0.0">
    <EntryPoint>
      <!-- Follow this link for more information about deploying Windows containers to Service Fabric: https://aka.ms/sfguestcontainers -->
      <ContainerHost>
        <ImageName>webtimesheetmanagement:dev</ImageName>
      </ContainerHost>
    </EntryPoint>
    <!-- Pass environment variables to your container: -->
    <!--
    <EnvironmentVariables>
      <EnvironmentVariable Name="VariableName" Value="VariableValue"/>
    </EnvironmentVariables>
    -->
  </CodePackage>

  <!-- Config package is the contents of the Config directoy under PackageRoot that contains an
       independently-updateable and versioned set of custom configuration settings for your service. -->
  <ConfigPackage Name="Config" Version="1.0.0" />

  <Resources>
    <Endpoints>
      <!-- This endpoint is used by the communication listener to obtain the port on which to
           listen. Please note that if your service is partitioned, this port is shared with
           replicas of different partitions that are placed in your code. -->
      <Endpoint Protocol="http" Name="ManagementTypeEndpoint" Type="Input" Port="8131" />
    </Endpoints>
  </Resources>
</ServiceManifest>

当我部署到本地群集或在本地运行时

http://localhost:8131/

它给了我403禁止的错误。

我们需要更改任何配置吗?

请帮助

0 个答案:

没有答案