Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 831045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:08:31+00:00 2026-05-15T04:08:31+00:00

My WCF Service when hosted is throwing an error: WCF Service PayThisException: Required attribute

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:08:31+00:00Added an answer on May 15, 2026 at 4:08 am

    Show us your web.config !! Especially everything in the <system.serviceModel> section.

    If you don’t have a web.config file, or your web.config doesn’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:

      <system.serviceModel>
        <services>
          <service name="WCFBindings.Service1" 
                   behaviorConfiguration="ServiceBehavior1">
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:7876/YourService/" />
              </baseAddresses>
            </host>
            <!-- Service Endpoints -->
            <!-- Unless fully qualified, address is relative to base address 
                 supplied above -->
            <endpoint 
                 address="" 
                 binding="wsHttpBinding" 
                 contract="WCFBindings.IService1">
               <!-- 
                  Upon deployment, the following identity element should be 
                  removed or replaced to reflect the identity under which the 
                  deployed service runs. If removed, WCF will infer an 
                  appropriate identity automatically.
               -->
               <identity>
                  <dns value="localhost"/>
               </identity>
            </endpoint>
            <!-- Metadata Endpoints -->
            <!-- The Metadata Exchange endpoint is used by the service to 
                 describe itself to clients. --> 
            <!-- This endpoint does not use a secure binding and should be 
                 secured or removed before deployment -->
            <endpoint 
                 address="mex" 
                 binding="mexHttpBinding" 
                 contract="IMetadataExchange"/>
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="ServiceBehavior1">
              <!-- To avoid disclosing metadata information, set the value 
                   below to false and remove the metadata endpoint above 
                   before deployment -->
              <serviceMetadata httpGetEnabled="True"/>
              <!-- To receive exception details in faults for debugging 
                   purposes, set the value below to true.  Set to false 
                   before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="False" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF Service hosted in IIS/ASP.NET that accepts HTTP Post ( not
I have a WCF service hosted for internal clients - we have control of
I've written a WCF Service hosted by a Windows Service and it needs to
I have a WCF service hosted in IIS. The intention is for clients to
Intro: I successfully implemented a WCF Service hosted in a Windows Service a few
I have a WCF service that is hosted in a windows application. The service
I have created a reference to an IIS hosted WCF service in my ASP.NET
I have a WCF service which will be hosted under IIS. Now I have
I have a WCF service, hosted in IIS 7.0 that needs to run database
I have a wcf application hosted in a windows service running a local windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.