My WCF Service when hosted is throwing an error:
WCF Service PayThisException: Required attribute ‘binding’ not found. (C:\Temp\WCFVirtualDirPath\web.config line 278)
Please help me with some solution.
Cheers,
Ravi Santlani
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Show us your web.config !! Especially everything in the
<system.serviceModel>section.If you don’t have a
web.configfile, or yourweb.configdoesn’t contain a<system.serviceModel>section – that’s your problem right there!As long as you’re not actually showing your real config file, I can only guess what might be wrong. Here’s a sample of what a WCF service config should look like:
Your message says “binding attribute is missing”, so most likely, you didn’t specify the
ABC of WCF– Address, Binding, Contract on your<endpoint>in your service config.