locked
Error 400 from mex endpoint RRS feed

  • Question

  • Hi.

    I've got a error, when trying to add service reference, or look at service from WCFClient

    Error HTTP 400: Bad Request.
    Metadata contain unresoved reference: "http://localhost:8731/Design_Time_Addresses/MyService/mex".
    XML document (1, 367748) contains a error.
    "type" attribute value is invalid —
    "q1:ArrayOfKeyValueOfstringArrayOfanyTypety7Ep6D1" is invalid value for attribute "type"..


    Removing any operation from service interface resolves problem.

    I guess, the error is produced by small size of buffers, but I don't know how to increase its' size.

    Thursday, October 1, 2009 9:46 AM

Answers

  • <bindings>
        <basicHttpBinding>
            <binding  name="basic_HttpBinding"  transferMode="Buffered"
             closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="0:10:00"         
             maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
                <security mode="None">
                </security>
                <readerQuotas   maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
            </binding>
        </basicHttpBinding>
    </bindings>

    check u configuration and replace the binding section with the above bindings
    • Proposed as answer by Sateesh Kodati Thursday, October 1, 2009 12:03 PM
    • Marked as answer by Riquel_Dong Wednesday, October 7, 2009 2:34 AM
    Thursday, October 1, 2009 12:03 PM

All replies

  • <bindings>
        <basicHttpBinding>
            <binding  name="basic_HttpBinding"  transferMode="Buffered"
             closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="0:10:00"         
             maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
                <security mode="None">
                </security>
                <readerQuotas   maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
            </binding>
        </basicHttpBinding>
    </bindings>

    check u configuration and replace the binding section with the above bindings
    • Proposed as answer by Sateesh Kodati Thursday, October 1, 2009 12:03 PM
    • Marked as answer by Riquel_Dong Wednesday, October 7, 2009 2:34 AM
    Thursday, October 1, 2009 12:03 PM
  • Hi ,

    It is an best option to turn on WCF message trace to investigate this kind of questions. Please have a look at MSDN help about message tracing.
    http://msdn.microsoft.com/en-us/library/ms733025.aspx

    Best regards,
    Riquel
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, October 6, 2009 9:41 AM