| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 5888 人关注过本帖
标题:新人求教,WCF 从另一方收到未进行安全处理或安全处理不正确的错误。
只看楼主 加入收藏
x183435739
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2015-2-6
收藏
 问题点数:0 回复次数:3 
新人求教,WCF 从另一方收到未进行安全处理或安全处理不正确的错误。
图片附件: 游客没有浏览图片的权限,请 登录注册

Server端配置
程序代码:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
    <compilation debug="true" />
  </system.web>
  <appSettings>
    <add key="BufferSize" value="4096" />
    <add key="ConStringEncrypt" value="false" />
    <add key="ConnectionString" value="Data Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))(CONNECT_DATA =(SERVICE_NAME = ORCL)));uid=reliableanalysis;pwd=reliableanalysis;" />
  </appSettings>
  <system.serviceModel>
    <bindings>
      <wsHttpBinding>
          <binding name="WS_BlogBinding" closeTimeout="00:10:00" openTimeout="00:10:00"
              receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false"
              maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
              useDefaultWebProxy="true" allowCookies="false">
              <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
    maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
              <reliableSession ordered="true" inactivityTimeout="00:10:00"
                  enabled="false" />
              <security mode="Message">
                  <transport clientCredentialType="Windows" proxyCredentialType="None"
                      realm="" />
                  <message clientCredentialType="Windows" negotiateServiceCredential="true"
                      algorithmSuite="Default" />
              </security>
          </binding>
      </wsHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="Com.PT.Server.Services.UserService" name="Com.PT.Server.Services.UserService">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="WS_BlogBinding" contract="Com.PT.Server.Services">
          <identity>
            <dns value="TestCert" />
          </identity>
        </endpoint>
        <endpoint address="" binding="wsHttpBinding" contract="IMetadataExchange" bindingConfiguration="WS_BlogBinding" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="http://127.0.0.1:8080/bindData/USER">
            <serviceMetadata httpGetEnabled="true" />
            <serviceDebug includeExceptionDetailInFaults="false" />
            <serviceThrottling maxConcurrentCalls="10000" maxConcurrentInstances="10000" maxConcurrentSessions="10000"/>
          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>


Client端配置
程序代码:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <bindings>
            <wsHttpBinding>
                <binding name="WS_BlogBinding" closeTimeout="00:10:00" openTimeout="00:10:00"
                    receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false"
                    maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
                    useDefaultWebProxy="true" allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
    maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                        enabled="false" />
                    <security mode="Message">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                            algorithmSuite="Default" />
                    </security>
                </binding>
            </wsHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://127.0.0.1:8080/bindData/USER" binding="wsHttpBinding"
                bindingConfiguration="WS_BlogBinding" contract="SR_Server.KKXFX_Blog"
                name="WSHttpBinding_KKXFX_Blog" />
        </client>
    </system.serviceModel>
</configuration>
搜索更多相关主题的帖子: version false 
2015-02-06 14:35
x183435739
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2015-2-6
收藏
得分:0 
Help Help ,弄了好久都没解决的问题,求帮助啊。
2015-02-06 14:38
jhxxy
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2014-4-9
收藏
得分:0 
阿拉也是菜鸟,看看是否可以学习一下,高手快出手
2015-04-24 08:05
wangnannan
Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18
等 级:贵宾
威 望:87
帖 子:2546
专家分:9359
注 册:2007-11-3
收藏
得分:0 
endpoit 没有添加bindingconfigration
导致的超时设置没有生效

出来混,谁不都要拼命的嘛。 。拼不赢?那就看谁倒霉了。 。有机会也要看谁下手快,快的就能赢,慢。 。狗屎你都抢不到。 。还说什么拼命?
2015-06-04 13:51
快速回复:新人求教,WCF 从另一方收到未进行安全处理或安全处理不正确的错误。
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018996 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved