Can I make a Silverlight application communicate with a Windows Workflow Foundation (WF) application? If yes, how can I do that?
I tried to add a reference from my Silverlight application to a WF application and it doesn't work.
If your application was a service application, then yes.
Silverlight won't host a workflow, but it could call a workflow service if the workflow you need to run is hosted within a service rather than an application.
It should be a matter of adding the service reference within the Silverlight application.
Related
I am developing a WPF application, which will be accessed from shared folder on server (Windows Server). My goal is to implement some mechanism of updating the app. The updater should be run on server probably as some kind of service. Which mechanism/technique would you recommended to use?
Based on your comment, I would look into using ClickOnce.
ClickOnce enables Web-style application deployment for non-Web
applications. Applications are published to and deployed from Web or
file servers.
https://msdn.microsoft.com/en-us/library/t71a733d(v=vs.140).aspx
You can also use Squirrel.
Squirrel: It's like ClickOnce but Works™
https://github.com/Squirrel/Squirrel.Windows
Following the walkthrough at http://msdn.microsoft.com/en-us/library/ee707351(v=VS.91).aspx I have a working Silverlight solution that employs a WCF RIA Services Class Library. I am now stuck on how to deploy this to a production server.
In a previous project (not using RIA services) that used a standard WCF Class Library I had to create a seperate web application to host the services. When it came to deployment it was obvious that I needed to deploy both the front-end (Silverlight hosting) web app and the server (WCF hosting) web app and everything worked well.
With the WCF RIA Services Class library solution there is only one web app in the solution. I am presuming that since the solution works in VS, the service is somehow being hosted in the same web app that was created for the Silverlight front-end but this is not visibly clear. Anyhow, I deployed the application using Web Deploy (as I have done other apps before) but it does not work. I didn't really expect it to!
Can anyone point me in the right direction?
When you link the .web RIA class library projects to your main web project, the services are accessed behind the scenes by URLs like:
http://localhost:2911/ClientBin/RiaServices-Documents-Web-DocumentDomainService.svc/binary/GetDocuments?$take=20&$includeTotalCount=True
The client RIA class library projects just assume a relative URL (relative to the hosting project), so they will work in any Silverlight application.
The only requirement is that you link the RIA service ".Web" project to the website hosting your Silverlight app. That will place the required service relative to the clientbin folder, ready to be consumed.
I had not installed RIA on the IIS Server because I received a message that led me to believe that you couldn't do it. However there is a command prompt command to do a special Server install see here msdn.microsoft.com/en-us/library/ff426913(v=VS.91).aspx. It now works by simply deploying the Web project.
Building a WPF XBAP based application, I need to access data in my hosted SQLServer DB (Shared hosting).
Therefore I need to create a WCF LINQ based service.
Anyone knows of a simple end-to-end tutorial demonstrating how to build the service and install it on the hosted webserver?
I've found several but either they are ASP.NET or Silverlight dedicated, either they are far from comprehensive...
Please do not answer with ASP.NET solutions... I need WPF.
Thanks in advance.
Consider using RIA Services for your scenario (calling the services from WPF rather than Silverlight).
See this StackOverflow question for references on how to call RIA Services from WPF: How to use WCF RIA SERVICES with WPF application?
We developped an C# .Net 2.0 Windows Form application for Windows XP embedded that controls the underlying hardware/device. Now, we need to add a c# .NET 2.0 Web Site (hosting by IIS inside the same device) that can send commands to the Windows Form application (example: Start measuring) and receive data.
What is the best way to do it?
We thought about Web Service, but how the Windows Form application can know when the Web Service will receive a command from the Web Site.
Thank you.
Note: Forbidden to install on the device a Framework .NET 3.x or 4
Given this restriction on .Net 2.0, .net remoting is the way to go in this situation.
http://en.wikipedia.org/wiki/.NET_Remoting
Winform app can expose objects via remoting. Web app can send request to these objects. request would have commands.
can i use both silverlight and spring.net in the same web based project
Silverlight is a client technology and spring.net is a server technology, as long as you aren't trying to implement a Silverlight client that is also a spring server, you should be able to do whatever you want with the two.