Results 1 to 2 of 2

Thread: Error: Cannot obtain Metadata from...

  1. #1

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    829

    Error: Cannot obtain Metadata from...

    Good Day

    I have a common error , but today it hit me, i have done all i needed to do to resolve it. when i run the service i get the error. My web config is configured this way

    Code:
      <system.serviceModel>
    
        <services>
          <service name="HE.Datalayer">
            <host>
              <baseAddresses>
                <add baseAddress = "http://localhost:65105/Datalayer.svc" />
              </baseAddresses>
            </host>
     
    
              <endpoint address=""
              binding="wsHttpBinding"
              contract="HE.IDatalayer"  >
              
              
              <identity>
                <dns value="localhost"/>
              </identity>
            </endpoint>
    
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
     
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        
         <serviceHostingEnvironment aspNetCompatibilityEnabled= "true"
          multipleSiteBindingsEnabled="true"  />
      </system.serviceModel>
    when i run the application i get the following Error

    The type 'Datalayer.Datalayer', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

    http://www.crimedetails.com/wcf_error.jpg

    Thanks

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,226

    Re: Error: Cannot obtain Metadata from...

    Read this thread.
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width