Return MembershipUser using WCF service

前端 未结 2 1606
慢半拍i
慢半拍i 2021-01-25 01:13

I have WCF service to get users from the ActiveDirectory. I receive parameter from the request (user name) and create response with MembershipUser property. from some reason, th

相关标签:
2条回答
  • 2021-01-25 01:57

    i found the error using the WCF trace. the error was that the XmlSeriazlier couldn't serialize the MembershipUser even though it was serializable because it has SecurityAttribute too. source:

    http://support.microsoft.com/kb/326971

    0 讨论(0)
  • 2021-01-25 02:17

    Turn on WCF diagnostic tracing to see the error that is causing the connection to be closed. It could originate on the client or the service, so you'll have to turn it on for both sides.

    How to turn on tracing: http://msdn.microsoft.com/en-us/library/ms733025.aspx

    Using the Service Trace Viewer to read trace logs: http://msdn.microsoft.com/en-us/library/aa751795(VS.85).aspx

    0 讨论(0)
提交回复
热议问题