返回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