【问题标题】:Support about Webservice when hosting in IIS [duplicate]在 IIS 中托管时对 Web 服务的支持 [重复]
【发布时间】:2013-09-30 04:27:26
【问题描述】:

我编写了一个 Web 服务,当我在 localhost 中运行它时,一切正常,但我托管在 IIS 7.0 中,它没有运行。请支持我!!! 这是我的 Web.config

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

【问题讨论】:

标签: wcf web-services iis


【解决方案1】:

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

确保您的应用程序池针对正确的 Net 版本进行了配置

确保在 IIS 中安装了 asp.net 支持

确保权限配置正确

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-24
    • 2014-01-14
    • 1970-01-01
    • 1970-01-01
    • 2013-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多