Reputation: 15276
I'm experimenting with the new Azure Websites Preview in SDK 1.7 and I'm trying to invoke a WCF workflow in a xamlx-file I've put i a folder at the root.
Everything is working just fine in the emulator on my localhost but in the cloud i just get the standard error saying "The resource cannot be found."
when I try to browse it.
What do I have to do to invoke the xamlx-workflow?
Upvotes: 0
Views: 513
Reputation: 20571
When you are using XAMLX WorkFlow activity service will, you would need to add a WCF service to expose as service so clients can consume it.
For example you have StockPriceService.xamlx as your WorkFlow activity then just add a WCF service to your application and set the SVC to use XAMLX as below:
<%@ ServiceHost Language="C#" Debug="true" Service="StockPriceService.xamlx" Factory="System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory,System.ServiceModel.Activation,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"%>
I have explained this process in my latest blog WorkFlow (XAMLX) Service Activity with WCF Service in Windows Azure Websites.
Upvotes: 1
Reputation: 24895
If it works in the emulator and it doesn't work when you deploy to the cloud it could be that the file is not included in the package.
Could you connect to your instance through Remote Desktop and take a look in the E:\sitesroot\0 folder? Can you see the XAMLX file here?
Upvotes: 0