1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<system.serviceModel>
    <behaviors>
        <serviceBehaviors>
            <behavior name="">
                <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
                <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <services>
        <service name="ConsoleApplication1.Service1">
            <endpoint address="net.msmq://localhost/private/myservice" binding="netMsmqBinding" contract="ConsoleApplication1.IService1"
                      bindingConfiguration="mybinding">
 
                <identity>
                    <dns value="localhost" />
                </identity>
            </endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
            <host>
                <baseAddresses>
                    <add baseAddress="http://localhost:8733/Design_Time_Addresses/ConsoleApplication1/Service1/" />
               </baseAddresses>
            </host>
        </service>
    </services>

---------

MSMQ验证模式设置为 WindowsDomain,但是MSMQ安装活动目录AD禁用。

通道工厂或者服务宿主不能打开。

解决方法是将MSMQ的安全验证给去掉,设置为none,虽然我觉得这不是为什么好解决办法

-------------------------

  <bindings>

    <netMsmqBinding>
      <binding name ="mybinding">
        <security mode="None">
          <!--<transport msmqAuthenticationMode="None" msmqProtectionLevel="None" />
          <message clientCredentialType="None" />-->
        </security>
      </binding>
    </netMsmqBinding>
  </bindings>
</system.serviceModel>

在配置system.serviceModel时,像上面的这样配置

在控制面板中安装MSMQ



最新文章

  1. 如何查看/统计当前AD域控制器的活动用户?
  2. php 操作数组(合并,拆分,追加,查找,删除等)(转载)
  3. Delphi ComboBox的属性和事件、及几个鼠标事件的触发
  4. win7 64位 TortoiseSVN-1.8.4客户端安装
  5. linux学习之四---gdb调试
  6. http://mozilla.debian.net/
  7. 一文让你从此告别HTTP乱码(二)Response篇
  8. spring + springmvc+ mybatis 事务管理及控制
  9. iOS App签名的原理
  10. boost::algorithm(字符串算法库)
  11. vue小技巧之偷懒的文件路径——减少不必要的代码
  12. 工作任务: 批量处理wav音频文件--shell脚本
  13. 深入理解JavaScript,这一篇就够了
  14. 树的子结构(JAVA)
  15. 1506.01186-Cyclical Learning Rates for Training Neural Networks
  16. css第二天
  17. 654. Maximum Binary Tree
  18. 泛化之美--C++11可变模版参数的妙用
  19. MATLAB:图形加法运算(imadd函数)
  20. Mui 下拉刷新,刷新完成功能实现

热门文章

  1. HDU 1215
  2. 【云快讯】之四十八《IBM和Cisco最新收购,加强Openstack易用能力》
  3. 【CareerCup】Trees and Graphs—Q4.3
  4. 火狐浏览器中加入httprequest的方法
  5. tcMalloc 配置和优化 nginx 高性能
  6. 使用Android Studo开发NDK之Gradle的配置(能debug C代码)
  7. remote debug
  8. Linux平台Oracle多个实例启动说明
  9. vue --- 关于多个router-view视图组件,渲染同一页面
  10. WPF向系统发送消息 并传递结构体