English 中文(简体)
IS 7.5 / 周转基金 - 净吨位状态不明
原标题:IIS 7.5 / WCF - net.tcp status unknown

我试图用 netTcpBinding 而不是 wsHtpBinding 来获得我的周转基金服务,但我似乎无法使其发挥作用。

我添加了对 IIS 7.5 有约束力的 < code> net. tcp , 但状态未知( < em>, 以及当我同时删除 http 绑定时, 它会通过网站插入一个大红色 X, 我必须在我再次访问任何设置 < / em > 之前添加一个新的 http 绑定 ) 。 我已经在这里和在 Google 上查看了, 但我只能找到两到三个没有真正解决方案的关于此问题的文章 。

我有的是:

  • WAS service running, and also the Net.* services.
  • Added net.tcp in Advanced Settings in IIS.
  • WCF non-http is installed.

似乎有一个 TCP 听众正在运行, 正如它从网络统计中显示的, 它正在我的指定端口收听: 809, 我也收到防火墙讯息(<他们也试图解除防火墙/防毒病毒, 但并没有帮助 < / em> ) 。

WCF 测试客户端导致错误 :

错误: 无法从 Net. tcp://localhost: 809/ My servicice. svc 获得元数据

我的Web.config(主要复制自 MSDN, 适当布局请在此查看 < a href="http://pastebin.com/ Ru8p0T9N" rel=“ nofollow” >http://pastebin.com/ Ru8p0T9N ):

<services>
  <service behaviorConfiguration="MyBehavior" name="WCFService.MyService">
    <endpoint address="" binding="netTcpBinding" bindingConfiguration="Binding1" name="MyServiceEndpoint" contract="WCFService.MyService">
      <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" name="MyServiceMexTcpBidingEndpoint" contract="IMetadataExchange" />
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://localhost:809/MyService.svc" />
      </baseAddresses>
    </host>
  </service>
</services>
<behavior name="MyBehavior">
  <serviceMetadata httpGetEnabled="false" />
  <serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<netTcpBinding>
  <binding name="Binding1"hostNameComparisonMode="StrongWildcard"sendTimeout="00:10:00"maxReceivedMessageSize="65536"transferMode="Buffered"portSharingEnabled="true">
    <security mode="Message">
      <transport clientCredentialType="None" />
      <message clientCredentialType="None" />
    </security>
  </binding>
</netTcpBinding> 

wsHttpBinding net.tcp 运作良好,但与 net.tcp 无关。 我在 Web 中尝试了多个不同的设置。 config from 多个来源,但我最后还是遇到同样的问题。

最佳回答

对于有同样问题的人来说:正如我以前说过的那样,我把应用池改成了经典的,它没有奏效(http 也不再有效了),但是当我把它换回来再回收应用池时,它突然起作用了。

问题回答

您是否在 IIS 中将 Net. tcp 添加为启用协议? 管理网站 {gt; 高级设置 {gt; 启用协议 (comma 分隔)?





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签