I ran into a bunch of errors which I resolved and now I am stuck on this error for few days already:
The request for security token has invalid or malformed elements.
Here's the client code:WCFCategories.CategoriesClient client = new WCFCategories.CategoriesClient();
Textbox1.Text = client.GetCategoriesInXML(611);
Here are my service / client web.config files:
SERVICE
--------------------
binding="wsHttpBinding"
contract="ICategories"/>
binding="mexHttpBinding"
contract="IMetadataExchange"/>
revocationMode="NoCheck"/>
x509FindType="FindBySubjectName"
storeLocation="LocalMachine"
storeName="My"/>
CLIENT
----------------------------
behaviorConfiguration="customBehavior"
binding="wsHttpBinding"
bindingConfiguration="customWsHttpBinding"
contract="WCFCategories.ICategories"
name="WSHttpBinding_ICategories">
findValue="My Client Machine"
storeLocation="LocalMachine"
storeName="My"/>
revocationMode="NoCheck"/>
Bechir BejaouiPosted Dec 9, 2008, 8:04 PM