开发者

mexhttpbinding issue

I hosted my DLL in IIS 6 and set it to only allow authenticated users (disable anonymous). However, I am facing a problem on mexHttpBinding. It requires anonymous login to publish metadata.

I am doing something like this:

This is the original configuration:

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

This is what I am trying to do:

<endpoint address="mex" binding="wsHttpBinding" contract="IMetadataExchange" bindingConfiguration="wsBinding" />

And this is the binding property:

<bindings>
  <wsHttpBinding>
    <binding name="wsBinding">
      <security mode="Transport">
      <transport clientCredentialType="Windows" />
    </security>
    </binding>
  </wsHttpBinding>
</bindings>

This resolves the issue, but I doubt this w开发者_开发技巧ill work out actually.

Can I change mexHttpBinding to wsHttpBinding for IMetadataExchange?


Yes, you can use a non-MEX Binding to retrieve metadata. See Retrieve Metadata Over a non-MEX Binding for a sample.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜