Workflow service host not publishing metadata

Still cracked with extreme persistence in WF services hosted outside of IIS. I am having problems with publishing metadata of a WF service. Can someone take a look at my code and see which step I am missing? Several tutorials I stumbled upon my script make it look so simple, and I know it is. I just missed something ridiculously simple. Here's my current trial code:

const string serviceUri = "http://localhost:9009/Subscribe";
WorkflowServiceHost host = new WorkflowServiceHost( new Subscribe(), new  Uri(serviceUri) );

host.AddDefaultEndpoints( );
host.Open();

      

Subscribe () is an action that is encoded in the xaml file and contains simple send and receive actions to test my hosted workflow service. This is NOT a xamlx file (WF service). It looks like it should be simple enough to work, but when I start the app and the service fires, I get this message in my browser while navigating the URI:

"Metadata publishing for this service is currently disabled."

Shouldn't you add default endpoints to provide enough metadata and description to satisfy the initialization of the service, and then go into a message pending state?

+2


a source to share


2 answers


Well it looks like the debug instance process was hanging on my machine. I just used the task manager to find the executable and kill the zombie process.



0


a source


For any future newbies, it could also be caused by a misconfigured app.config. Add below to your app.config and then open your service location in your browser:



  <system.serviceModel>
    <bindings />
    <client />
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <serviceDebug includeExceptionDetailInFaults="True"
                        httpHelpPageEnabled="True"/>
          <serviceMetadata httpGetEnabled="True"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

      

+1


a source







All Articles