2013-09-30 72 views
-2

我在本地主机上运行时编写Web服务,一切正常,但我在IIS 7.0中托管,它未运行。请支持我! 这里我的web.config当在IIS中托管时支持Webservice

<system.serviceModel> 
    <services> 
     <service name="VivuFace_V2.api.CloudCameraService" behaviorConfiguration="VivuFace_V2.api.CloudCameraServiceBehavior"> 
     <endpoint address="../CloudCameraService.svc" 
      binding="webHttpBinding" 
      contract="VivuFace_V2.api.ICloudCameraService" 
      behaviorConfiguration="webBehaviour" /> 
     </service> 
    </services> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name="VivuFace_V2.api.CloudCameraServiceBehavior"> 
      <serviceMetadata httpGetEnabled="true" /> 
      <serviceDebug includeExceptionDetailInFaults="false" /> 
     </behavior> 
     </serviceBehaviors> 
     <endpointBehaviors> 
     <behavior name="webBehaviour"> 
      <webHttp/> 
     </behavior> 
     </endpointBehaviors> 
    </behaviors> 
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
    </system.serviceModel> 
+0

是否有任何异常或错误消息.. – Sasidharan

+0

嗨Sasidharan,请按照此链接更多信息,谢谢http://stackoverflow.com/questions/19086610/support-about-web-service-when-hosting-in -iis –

+0

请不要发表两次相同的问题。 –

回答

0

这是非常开放式的,因为没有错误消息,在这里,但我的经验是,很多有关IIS下托管的时间问题是由于以下几点:

确保您的应用程序池配置为净

确保asp.net支持的正确版本安装在IIS

确保权限正确配置