Sending object to WCF service. MaxStringContentLength (8192 bytes) exceeded when deserializing

后端 未结 2 1396
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-25 15:09

I created a simple WCF web service that has one method: SubmitTicket(flightticket ft, string username, string password)

On the client side, I have an application for fil

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-25 15:49

    I think the problem is that your service is not picking up its config because you have set the service name to be FlightTicketWebService whereas I would guess that the actual type is in a namespace. Fully qualify the service name with the namespace and it should pick up your config

    Essentially this is a by-product of the WCF 4 default endpoint functionality that if it finds no matching config it puts endpoints up with the default config

提交回复
热议问题