I have one asp.net(c#) application and a asp.net enabled wcf service hosted in same port as two virtual directories. i have configured form authentication for both asp.net and asp.net enabled wcf service. When i am calling method in WCF Service from asp.net without forms authentication everything working fine. when i enable the forms authentication in wcf service . i get the following error with the contents of login page due to the unauthenticated service call.
i have pasted the some part of response below
"The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were"
i have tried the solution i get from net by adding current authentication cookie using following code but i get the same issue.
|
I look forward for your reply. Tired of searching for the solution...
thanks in advance.
Replies
Know the answer? Post it — somebody with the same question will find it here.