none
Cannot obtain Metadata from http://localhost:55408/ShopProcessService.svc RRS feed

  • Question

  • It appears I’m missing one little thing, but can’t figure it out…

    Here is the Web Tab in the project:

    http://localhost/Ryder.ShopProcessService.SOA

    Here is the web.config file. I just want to use basic_httpbinding in order to debug.

    It gets published successfully...

    I’m using the Local IIS web server with Ryder.ShopProcessService.SOA as an application under the Default Web Site:

    I ensured that the files were there on my local machine after the publish with the correct timestamp:

    I’m still getting the below error. To my knowledge, everything is set up correctly, but obviously not. Would you please be able to take a look at this output with your expertise? It’s probably something very simple that I’m overlooking.


    Bill Yeager

    Thursday, March 13, 2014 4:01 PM

Answers

  • EDIT 2 - Resolution
    -------------------
    After tracing down everything in my solution, I found what the error was...
    My class was listed as follows: Notice the implementing of the List object which should not be there.

        public class HeaderRecordCollection : List<HeaderRecord>
         {
          private List<HeaderRecord> headerRecords;
       
       
       
          public HeaderRecordCollection()
          {
          }
       
       
          [DataMember(Name = "HeaderRecords")]
          public List<HeaderRecord> HeaderRecords
          {
           get
           {
            return headerRecords;
           }
           set
           {
            headerRecords = value;
           }
          }
         }

    I simply removed that where I only have one list. Since now only having one list for the object, no complaints from WCF!


    Bill Yeager

    Friday, March 14, 2014 2:29 PM

All replies

  • Hi Bill,


    Have you tried adding the port to your baseAddress? The IISExpress usually uses a port (it does no publish in the port 80)  for publishing services in the localhost, so you have to add the port it is using (55408) in order to publish the metadata.

    Best Regards.


    Thursday, March 13, 2014 6:16 PM
  • Hi,

    First please try to check if you can broswer the following service in IE:
    http://locahost/Ryder.ShopProcessService.SOA/ShopProcessService.svc .

    And It seems that you are hosting the service in IIS, If so, please do not use the baseaddress. And I use a similar config file with you, but it works well.
    So I think maybe the Service Name in config file (service config) is incorrect, and the service name doesn't seem to correspond to the class that actually implements your service.

    For more information, please try to check this similar thread:
    http://stackoverflow.com/questions/4917761/wcf-metadata-publishing-for-this-service-is-currently-disabled-content-type-er .

    Best Regards,
    Amy Peng

    Friday, March 14, 2014 6:55 AM
  • EDIT 2 - Resolution
    -------------------
    After tracing down everything in my solution, I found what the error was...
    My class was listed as follows: Notice the implementing of the List object which should not be there.

        public class HeaderRecordCollection : List<HeaderRecord>
         {
          private List<HeaderRecord> headerRecords;
       
       
       
          public HeaderRecordCollection()
          {
          }
       
       
          [DataMember(Name = "HeaderRecords")]
          public List<HeaderRecord> HeaderRecords
          {
           get
           {
            return headerRecords;
           }
           set
           {
            headerRecords = value;
           }
          }
         }

    I simply removed that where I only have one list. Since now only having one list for the object, no complaints from WCF!


    Bill Yeager

    Friday, March 14, 2014 2:29 PM