返回404我有一个服务织物集群在本地工作正常,但在部署到Azure中的WebAPI无状态的服务回报服务织物的服务存在,但在调用时
404 FABRIC_E_SERVICE_DOES_NOT_EXISTS
然而,SF集群表明服务实际上不存在并且启动并运行 下面是我的服务清单的服务
<?xml version="1.0" encoding="utf-8"?>
<ServiceManifest Name="SvcWebAPIPkg"
Version="1.0.9"
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.
This name must match the string used in RegisterServiceType call in
Program.cs. -->
<StatelessServiceType ServiceTypeName="SvcWebAPIType" />
</ServiceTypes>
<!-- Code package is your service executable. -->
<CodePackage Name="Code" Version="1.0.9">
<EntryPoint>
<ExeHost>
<Program>SvcWebApi.exe</Program>
<WorkingFolder>CodePackage</WorkingFolder>
</ExeHost>
</EntryPoint>
</CodePackage>
<ConfigPackage Name="Config" Version="1.0.9" />
<Resources>
<Endpoints>
<Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input"
Port="80" />
</Endpoints>
</Resources>
</ServiceManifest>
你是如何访问它的? – Mardoxx
您使用什么地址访问该服务? –
http://myaddress.com/api/BriefcaseApi/GetString/ @Mardoxx这是一个简单的调用集群内的自我托管的WebAPI – Kayani