Question

VenkatABC on Tue, 22 Nov 2011 05:15:35


Hi,

When I installed StreamInsight, there is windows service created and i gave the name as:

StreamInsightServer

But my smaple code is working fine even when the above windows service is NOT running. here is how I am creating the Server in my sample code:

using (Server server = Server.Create("StreamInsightServer"))

{

}

So I am wondering what is the use of windows service: StreamInsightServer

Can some one elobrate on this?




Sponsored



Replies

questioning11 on Tue, 22 Nov 2011 09:59:42


Hello,

When you installed StreamInsight you checked a box that said Create a StreamInsight host Windows Service, thereby registering the StreamInsight host as a Windows Service. It's not compulsory to do so however.

In your code you are creating an in-process StreamInsight server, you are not connecting to an existing StreamInsight server. The name you're supplying should refer however to an existing StreamInsight host (you're adding some DLLs references to your project, which correspond to one of the installed StreamInsight instances on your machine).

Check thisthis and this for further reference.

Hope it helps.

 

VenkatABC on Wed, 23 Nov 2011 12:26:30


Hi.. I am lost bit on this...

Yes, Now I have a StreamInsightServer is availble as a Windows service (Created as part of installation).

How to connect to this?

I can write a simple code:

Server server = Server.Create("StreamInsightServer");
    ServiceHost host = new ServiceHost(server.CreateManagementService());
    host.AddServiceEndpoint(typeof(IManagementService),
                            new WSHttpBinding(SecurityMode.Message),
                            "http://localhost:8090/StreamInsightServer ");
    host.Open();

 

But this is working fine even when the "Windows Service: StreamInsightServer" is not running. So I am sure that I am not using the Windows service.

Can some one explain how to connect to the installed StreamInsight windows service?

DevBiker on Wed, 23 Nov 2011 23:26:47


Take a look at http://code.msdn.microsoft.com/Simple-StreamInsight-d83ca541. This sample allows you to host in process or connect to a running Windows service ... so you'll see the differences.

In short, however, you'll use Server.Connect() to connect to the WIndows Service. Your code above, as mentioned before, is running in process (embedded model). The management service that you are creating is also in-process and would allow you to connect to your embedded StreamInsight instance.

camping89 on Wed, 26 Mar 2014 02:28:10


Hello,

I think I got a similar issue here http://social.msdn.microsoft.com/Forums/en-US/42b8889c-2875-4cc0-a06b-e04991fc5b01/streaminsight-service-on-windows-doesnt-recognize-the-application-dlls?forum=streaminsight

And I tried to look at http://code.msdn.microsoft.com/Simple-StreamInsight-d83ca541 but the link is dead.

Would you please check it? And take a look at my question?

You are going to save my days.