无法连接到远程计算机上的 IIS 服务器

较新的

我在 remonte 机器(Windows Server 2008 R2)上创建了 iis 服务器。这是我的web.config:

  <system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding name="Binding" closeTimeout="00:05:00" sendTimeout="00:10:00" />
  </wsHttpBinding>
</bindings>
<behaviors>
  <serviceBehaviors>
    <behavior name="DictionaryServiceBehaviors">
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<services>
  <service behaviorConfiguration="DictionaryServiceBehaviors" name="BandD.Serwis.SerwisISS.Service.DictionariesService">
    <endpoint address=""
              binding="wsHttpBinding"
              contract="BandD.Serwis.SerwisISS.Interface.IDictionariesService"
              bindingConfiguration="Binding"/>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    <host>
      <baseAddresses>
        <add baseAddress="http://xxx.xxx.199.89:7833/BandD.Serwis.SerwisISS.Service/DictionariesService/"/>
      </baseAddresses>
    </host>
  </service>
</services>

那是客户端应用程序的 app.config:

  <system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding name="WSHttpBinding_IDictionariesService" />
  </wsHttpBinding>
</bindings>
<client>
  <endpoint address="http://xxx.xxx.199.89:7833/Service/DictionariesService.svc"
      binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDictionariesService"
      contract="DictionariesService.IDictionariesService" name="WSHttpBinding_IDictionariesService">
  </endpoint>
</client>

我已将 IIS 服务器角色添加到我的远程计算机,我设置了物理路径以从服务器应用程序(从 VS 发布)中找到已发布的文件。我设置为禁用的所有身份验证,仅启用匿名身份验证。

当我尝试使用 SoapUi 连接到 WSDL 时出现错误:

Error getting response; java.net.UnknowsHostException: winserver2008

当我想使用客户端应用程序连接到服务器时,我必须输入用户名和密码(管理员密码不起作用)。我必须做什么才能无需身份验证即可连接到服务器。我应该在服务器(Windows 服务器)或 app.config 上更改什么才能正确连接。

可能我有床 web/app.config

较新的

好的,我找到了解决方案:在 MS Server 上,我现在将网站连接为(在基本设置中)连接到管理员。这只是现在,我稍后会更改。其次,我在服务器上更改 web.config:

  <system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding name="Binding" closeTimeout="00:05:00" sendTimeout="00:10:00">
      <security mode="None" />
      <reliableSession enabled="true" />
    </binding>
  </wsHttpBinding>
</bindings>
<behaviors>
  <serviceBehaviors>
    <behavior name="DictionaryServiceBehaviors">
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<services>
  <service behaviorConfiguration="DictionaryServiceBehaviors" name="BandD.Serwis.SerwisISS.Service.DictionariesService">
    <endpoint address="" binding="wsHttpBinding" bindingConfiguration="Binding"
      contract="BandD.Serwis.SerwisISS.Interface.IDictionariesService" />
    <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
      name="mex" contract="IMetadataExchange" />
    <host>
      <baseAddresses>
        <add baseAddress="http://http://xxx.xxx.199.89:7833/Service/DictionariesService" />
      </baseAddresses>
      <timeouts closeTimeout="00:01:00" openTimeout="00:10:00" />
    </host>
  </service>
</services>

最后我更改客户端应用程序配置:

<system.serviceModel>
    <bindings>
        <wsHttpBinding>
            <binding name="WSHttpBinding_IDictionariesService">
                <reliableSession enabled="true" />
                <security mode="None" />
            </binding>
        </wsHttpBinding>
    </bindings>
    <client>
        <endpoint address="http://xxx.xxx.199.89:7833/Service/DictionariesService.svc"
            binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDictionariesService"
            contract="DictionariesService.IDictionariesService" name="WSHttpBinding_IDictionariesService" />
    </client>
</system.serviceModel>

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法连接到远程服务器:无法建立连接,因为目标计算机主动拒绝了它

来自分类Dev

无法从非Windows计算机远程连接到IIS Express

来自分类Dev

如何从我连接到当前服务器的那台计算机上查找

来自分类Dev

如何从远程计算机连接到弹性搜索服务器?

来自分类Dev

使用连接到远程服务器的打印机从本地计算机打印文件

来自分类Dev

服务器未连接到远程计算机(Linux)

来自分类Dev

PHP Mysql iis VPS-从远程服务器连接

来自分类Dev

IIS:尝试在计算机上配置IIS以与包含文件一起使用时,出现500服务器错误

来自分类Dev

从本地计算机连接到服务器-SSH

来自分类Dev

无法从远程计算机访问MySQL服务器

来自分类Dev

无法从远程计算机访问MySQL服务器

来自分类Dev

如何连接到远程服务器IIS上的已发布网站

来自分类Dev

将计算机连接到VPN时,本地DNS服务器无法解析名称

来自分类Dev

客户端计算机上的MySQLdb可以连接到服务器计算机上的数据库吗?

来自分类Dev

客户端计算机上的MySQLdb可以连接到服务器计算机上的数据库吗?

来自分类Dev

工作者无法连接到同一台计算机上的主服务器(无效关联)-即使url正确

来自分类Dev

在iis远程服务器中部署SpringBoot + Angular Webapp

来自分类Dev

通过Powershell在远程服务器上运行IIS命令

来自分类Dev

IIS访问同一域中的远程服务器

来自分类Dev

如何使Java客户端使用套接字连接到不在我的计算机上的服务器?

来自分类Dev

客户端只能在同一台计算机上连接到服务器

来自分类Dev

从路由器的计算机目录连接到交换机上的计算机

来自分类Dev

如何通过每个人都可以访问的服务器通过隧道连接到无法访问的远程计算机?

来自分类Dev

“无法启动IIS Express Web服务器”错误

来自分类Dev

无法启动IIS Web服务器,如何调试

来自分类Dev

无法通过IIS访问“ Azure文件服务器”

来自分类Dev

Kafka启动失败,并导致Zookeeper超时(远程服务器),但是计算机可以直接连接到Zookeeper

来自分类Dev

禁用Windows防火墙服务后,我无法将远程桌面(RDP)远程连接到计算机

来自分类Dev

IIS服务器是否有可用的Jetty IIS连接器?

Related 相关文章

  1. 1

    无法连接到远程服务器:无法建立连接,因为目标计算机主动拒绝了它

  2. 2

    无法从非Windows计算机远程连接到IIS Express

  3. 3

    如何从我连接到当前服务器的那台计算机上查找

  4. 4

    如何从远程计算机连接到弹性搜索服务器?

  5. 5

    使用连接到远程服务器的打印机从本地计算机打印文件

  6. 6

    服务器未连接到远程计算机(Linux)

  7. 7

    PHP Mysql iis VPS-从远程服务器连接

  8. 8

    IIS:尝试在计算机上配置IIS以与包含文件一起使用时,出现500服务器错误

  9. 9

    从本地计算机连接到服务器-SSH

  10. 10

    无法从远程计算机访问MySQL服务器

  11. 11

    无法从远程计算机访问MySQL服务器

  12. 12

    如何连接到远程服务器IIS上的已发布网站

  13. 13

    将计算机连接到VPN时,本地DNS服务器无法解析名称

  14. 14

    客户端计算机上的MySQLdb可以连接到服务器计算机上的数据库吗?

  15. 15

    客户端计算机上的MySQLdb可以连接到服务器计算机上的数据库吗?

  16. 16

    工作者无法连接到同一台计算机上的主服务器(无效关联)-即使url正确

  17. 17

    在iis远程服务器中部署SpringBoot + Angular Webapp

  18. 18

    通过Powershell在远程服务器上运行IIS命令

  19. 19

    IIS访问同一域中的远程服务器

  20. 20

    如何使Java客户端使用套接字连接到不在我的计算机上的服务器?

  21. 21

    客户端只能在同一台计算机上连接到服务器

  22. 22

    从路由器的计算机目录连接到交换机上的计算机

  23. 23

    如何通过每个人都可以访问的服务器通过隧道连接到无法访问的远程计算机?

  24. 24

    “无法启动IIS Express Web服务器”错误

  25. 25

    无法启动IIS Web服务器,如何调试

  26. 26

    无法通过IIS访问“ Azure文件服务器”

  27. 27

    Kafka启动失败,并导致Zookeeper超时(远程服务器),但是计算机可以直接连接到Zookeeper

  28. 28

    禁用Windows防火墙服务后,我无法将远程桌面(RDP)远程连接到计算机

  29. 29

    IIS服务器是否有可用的Jetty IIS连接器?

热门标签

归档