首页新闻找找看学习计划

wcf在使用msmq队列时用iis 绑定错误!

0
[已解决问题] 解决于 2015-11-12 23:07

1.IIS已经绑定上了

2.元数据也可以发布,客户端找得到发布的元数据,也能添加数据到消息队列里面,

 

但是在浏览器中输入url的时候总是会跳出下面的框,而且服务端也不能从消息队列里面获取数据(会弹出下面的框,貌似找不到消息队列)

<system.serviceModel>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
        <bindings>
            <netMsmqBinding>
                <binding name="msmqBinding" receiveErrorHandling="Drop" receiveRetryCount="0"  retryCycleDelay="00:00:20" maxRetryCycles="2">
                    <security mode="None" />
                </binding>
            </netMsmqBinding>
        </bindings>
        
        <services>
            <service name="WebApplication1.Service1">
                <endpoint binding="netMsmqBinding"   bindingConfiguration="msmqBinding"
                          address="net.msmq://./private/myqueue" contract="WebApplication1.IService1" />
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
            
                <behavior name="">
                    <serviceMetadata httpGetEnabled="true" />
                    <serviceDebug includeExceptionDetailInFaults="false" />
                </behavior>
            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>
koi的主页 koi | 初学一级 | 园豆:2
提问于:2015-11-12 17:49
< >
分享
最佳答案
0

微软官方的这个详细步骤可参考

http://blogs.msdn.com/b/tomholl/archive/2008/07/12/msmq-wcf-and-iis-getting-them-to-play-nice-part-1.aspx

http://blogs.msdn.com/b/tomholl/archive/2008/07/13/msmq-wcf-and-iis-getting-them-to-play-nice-part-2.aspx

奖励园豆:5
2012 | 专家六级 |园豆:19142 | 2015-11-12 18:00
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册