相关疑难解决方法(0)

在查看MyService.svc?wsdl时,WCF不使用计算机名而不是域名

我的WCF serice似乎使用的是计算机名而不是域名.当我查看MyService.svc?wsdl链接时,它显示我的计算机名称.

我在哪里可以在web.config中添加我的域名?端点地址,基址还是身份?

注意:我正在使用SSL,所以必须这样做 https://www.example.com/myservice.svc

iis ssl configuration wcf web-services

32
推荐指数
4
解决办法
3万
查看次数

在ASP.NET服务器2012上将我的ASP.NET网站移动到IIS 8 ...缺少服务:.svc文件是可见的,但是他们的方法给出了404

我从Windows Server 2003上的IIS 6移动.

可以浏览.svc文件.如果我在浏览器中访问http://example.com/Service.svc,我会得到一个很好的标准"这是一个Windows©Communication Foundation服务"页面.

无法浏览任何方法 - 如果我在浏览器中访问http://example.com/Service.svc/Method?parameter=xyz,我会收到404错误.

有没有人见过这样的东西?任何想法或建议?

我想我可能会遇到类似的问题:IIS8上的WCF;*.svc处理程序映射不起作用

但症状是不同的(看起来他们根本看不到.svc文件)并且没有解决方案工作(我已经安装了WCF功能的Http Activation等).

asp.net wcf http-status-code-404 iis-8

11
推荐指数
2
解决办法
2万
查看次数

WCF服务名称和绑定名称

脚本

我在一个App.Config文件中组合了两个WCF服务.我无法运行(应用程序编译但在初始化服务时失败).

我想知道我是否需要将服务名称设置为与整体服务中定义的其他内容相同?

错误

TypeInitializationException

{"服务'MurexUploadObjects.ResponseService'没有应用程序(非基础结构)端点.这可能是因为没有为您的应用程序找到配置文件,或者因为在配置文件中找不到与服务名称匹配的服务元素,或者因为没有在服务元素中定义端点."}

<system.serviceModel>
<configuration>

<behaviors>
 <serviceBehaviors>
   <behavior name="Service1Bevhavior">
   </behavior>
   <behavior name="Service2Bevhavior">
   </behavior>
   </serviceBehaviors>
  </behaviors>

   <bindings>
    <netTcpBinding>
      <binding name="tcpBloombergServiceEndPoint" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
          hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288"
          maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536">
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
      maxBytesPerRead="4096" maxNameTableCharCount="16384" />
       <reliableSession ordered="true" inactivityTimeout="00:05:00"
      enabled="true" />
       <security mode="None">
       <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
       <message clientCredentialType="Windows" />
       </security>
     </binding>

     <binding name="TransactedBinding">
     <security mode="None" />
     </binding>

   </netTcpBinding>
   </bindings>

 <services>

 <!--SERVICE ONE-->
 <service name="INSERT NAME HERE">
   <endpoint address="net.tcp://AP434190:8732/BloombergService/"
binding="netTcpBinding"
contract="BloomberPriceListenerService.IBloombergPriceListenerService"
bindingConfiguration="tcpBloombergServiceEndPoint" …
Run Code Online (Sandbox Code Playgroud)

service wcf

5
推荐指数
1
解决办法
2万
查看次数