0
我刚刚使用WCF和Azure,但是我有一个在Visual Studio中调试时可以正常工作的WCF Web服务。我将启动项目设置为Azure,并且我尝试了与该服务相关的任何URL的404错误。WCF Web服务在Azure中给出404错误
这里是什么,我认为是初步认识代码: 从IWebService.cs
[OperationContract]
[WebGet(UriTemplate = "GetData/Xml?value={value}", ResponseFormat=WebMessageFormat.Xml)]
string GetDataXml(string value);
,并从Web.config文件:
<system.serviceModel>
<services>
<service name="WebService" behaviorConfiguration="WebServiceBehavior">
<!-- Service Endpoints -->
<endpoint address="" binding="webHttpBinding" contract="IWebService" behaviorConfiguration="WebEndpointBehavior"></endpoint>
<endpoint address="ws" binding="wsHttpBinding" contract="IWebService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WebServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="WebEndpointBehavior">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
我试图改变的结合 'basicHttpBinding的',但那没有运气。
在此先感谢您的帮助!
您是否在Azure Web角色上运行过此功能? – hoetz 2012-08-03 06:14:42