There was no endpoint listening at http://localhost/StreamInsight/<instancename> that could accept the message

Answered There was no endpoint listening at http://localhost/StreamInsight/<instancename> that could accept the message

All Replies

  • Thursday, November 15, 2012 7:49 PM
     
     Answered Has Code

    Are you hosting StreamInsight in your own process (using Server.Create vs. Server.Connect)? If so, you need to start the management service.

    ServiceHost managementServiceHost = new ServiceHost(cepServer.CreateManagementService());
    //Adding the service host. 
    //This allows remote clients to access this application, including the Query Debugger.
    managementServiceHost.AddServiceEndpoint(
        typeof(IManagementService),
        new WSHttpBinding(SecurityMode.Message), AppSettings.Current.ManagementServiceUrl);
    managementServiceHost.Open();
    You'll need to run Visual Studio as Administrator (User Account Control) or register the URL (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).

    Check out this blog entry and download the sample if you need an example.


    DevBiker (aka J Sawyer)
    Microsoft MVP - Sql Server (StreamInsight)


    Ruminations of J.net


    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.

  • Thursday, November 22, 2012 9:25 AM
     
     

    Hi,

    Thanks for the answer but I'm afraid it didn't solve my problem.

    Btw what is usually the url to AppSettings.Current.ManagementServiceUrl ?

    Cheers

    Régis



    Blog

  • Thursday, November 22, 2012 3:02 PM
     
     Answered

    The Url is whatever you want it to be. If you download the sample, you'll see that it comes from the config file in the sample. Did you download it?

    Also, have you tried disabling the firewall? It could be that the firewall is blocking (though I doubt it).

    I'm assuming that you are running an embedded server (in process, using Server.Create rather than Server.Connect). Can you post your start up code?


    DevBiker (aka J Sawyer)
    Microsoft MVP - Sql Server (StreamInsight)


    Ruminations of J.net


    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.