Remote Communication Service for WinForms - c#

Im looking at creating a service on a remote server that a win forms app can communicate with. (Where the forms app is running locally on user machines).
The service can either run in IIS (7.5) or as a windows service, but essentially I need to be able to call the service from the forms app and then have a stream of progress sent back to the forms app from the service, much like you would output to a Console window.
I've looked into using WCF which seems ideal except I couldn't find out whether I can relay progress updates back to the forms app. Also SignalR running as a self hosted windows service seems to be an option but might be overkill?
We'll be running the forms app on win7 and the remote server will be running server 2008.
Are you able to advise best routes to go down for this and if possible some examples or tutorial links?
Many thanks :-)

If you are looking for the application to relay back to the server for progress, seems you are looking for something like this:
WCF Duplex
It basicly enable you to call bi-directional function using open socket.
Hope it helps.
Thanks,
Amir

Related

How to connect windows service with UI configuration app?

I need to have a windows service that is configured with simple UI. I understand, that I need to create an API for windows service and use it in separate desktop application. But whatever I google I just got "you can't create UI to windows service" or info about webservice. I found this https://www.codeproject.com/Articles/1159908/Yes-I-Know-But-I-Still-Want-a-GUI-for-my-Windows-S but this seems to be a pretty bad workaround, because I can't use already started service in my GUI using it. What I need is some code, explaining how to create a connection between these two applications

Capture the network traffic of the windows application

I am working in windows application which consumes WCF services(http) which are hosted in another server.Initial load of this application is too high.
To find out root cause of the issue, I would like to see the network traffic when the windows application is running in my machine and i want to know how much time it is taking to make calls and get data from service.
Is there any tool to capture the network traffic when the windows application is running on the desktop.
thanks
For WCF, you will want to use use WCF tracing. Here is an SO article that talks about how to enable it: How to turn on WCF tracing?

C# Metro Host WCF Service Library in IIS

I have another annoying Metro/WCF problem :((
I have an app that uses COM object for connecting with some server.
I've created WCF Service Library which connects with server and my Metro application in one solution.
When I run it from Visual Studio debug it goes all ok.
But now I need to deploy my app onto my tablet PC for testing purposes.
I successfully deployed my test-certified Metro-application on the destination PC, but I can't understand, how can I deploy my WCF Service on it and start to listen for connections :(
I heard that I can achieve this by hosting my service in IIS, but I'm extremely new to IIS and I don't understand what-buttons-to-click :((( I don't know what's an ASP and kind of this..
And I want to know - how can my app customers will run my application without needing to deploy IIS and so on.... when my app goes in Windows Store.
Please, if anybody knows how to achieve my goals - help me if you can.
Thank you everybody!!!
Have a nice day :)

Windows Service on Shared Windows Hosting

I have process which continuously downloads XML from the feed and saves it to DB.
I have a Windows Shared Hosting.
My question is what should I use..WCF or Windows Service or Web Service.
I cant use ASP.net because it will run on call only...but I need it run 24/7.
Can you guyz suggest me how to design it?
I have written a Windows Service but was unable to run it on the Server.
My hosting provider is Hostgator.com
You need to do it in a Windows Service.
To run it you'll need a VPS hosting (or dedicated, but it will cost much more).
Start with building a Console Application that does what you need. After you have it look online how to convert it to a windows service.

How can i set up a windows service to listen to events on a remote machine

I have a asp.net web app and a windows service running on separate machines. How can i enable the windows service subscribe/listen to events raised by the asp.net app on the remote machine? What methods can i use?
An example of events that can be raised on the asp.net app is a user uploading a file. Once the upload has completed the windows service should be notified so it can do some work.
It seems that there needs to be a layer in between asp.net and windows service, possibly another windows service or WCF app? Or plain old polling through a shared database containing the state?
I'm not really sure, hope someone can point me in the right direction.
Create a wcf service and host it in your window service. When your web service receive a file, it will call a method on the windows service (wcf).

Categories

Resources