+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Failed workflow operation

Failed workflow operation

71 posts, 0 answered
  1. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Feb 2011
    Link to this post
    Hello jwize,

    Can you please let us know if you have tried the suggestion to edit the hosts file?

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    07 Feb 2011
    Link to this post
    Hi all,

    We have introduced a new property (WorkflowBaseUrl) in Administration -> Settings -> Advanced -> System -> ServicePaths. You should set the base url to the domain name you are publicly viewing your website on, for example http://mydomain.com.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    08 Feb 2011
    Link to this post
    Thanks Radoslav! The new property in the admin fixed it nicely. By the way, is this only happening in a special WCF / IIS binding scenario?
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Feb 2011
    Link to this post
    Hello bemara57,

    This is happening when your website is added on a port different than the default one and you are using internal redirects to load the site. In this case Sitefinity is trying to message the workflow service internally and is not able to find the proper address for it.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Tim Connell
    Tim Connell avatar
    2 posts
    Registered:
    24 May 2010
    01 Mar 2011
    Link to this post
    I've made the change to the settings and am still getting the same error. No workflows are defined.  Should there be anything in the workflows directory?  Mine is empty.

    Update: I figured it out.  The server's address is NATed and there is some DNS wierdness in our network  I set the workflow path to the internal IP address and it all seems to be working.
  6. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    09 Mar 2011
    Link to this post
    I'm getting this same error when moving my site from my local pc to my Win 2008 IIS 7 server. I did everything mentioned but no luck.

    I posted something before coming across this.

    Any suggestions?
  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    15 Mar 2011
    Link to this post
    Hi NuToSitefinity,

    Can you please let us know what you have configured for your WorkflowBaseUrl, and what is the address under which you are accessing your website?

    Regards,
    Radoslav Georgiev
    the Telerik team
  8. Madhavan
    Madhavan avatar
    19 posts
    Registered:
    31 Jan 2011
    18 Mar 2011
    Link to this post
    Hello All,

      I had the same issue with Sitefinity 4.0 1098 build on my test site. The issue was fixed once I did the following 2 things

    1. Changed the workflow url on the administration - > Settings - > advanced - > System - > ServicePaths - > 
     
  9. Brenda
    Brenda avatar
    7 posts
    Registered:
    26 Jul 2012
    01 Apr 2011
    Link to this post
    This is our first site and we are also getting the
    There was no endpoint listening at http://centraspecialtyhospital.com/Workflows/PagesApprovalWorkflow.xamlx that could accept the message.  This is often caused by an incorrect address or SOAP action.  See InnerException, if present, for more details.  error message.

    We are version 4.0.962.0.  When I check Administration > Settings > Advanced > System - there is not a ServicePaths option.  There is ServiceModules. 

    Please advise what to look for - let me know if you need more information.


    ** Just tried updating the hosts file with the IP and host name of site - it fixed the problem above. 
  10. Brenda
    Brenda avatar
    7 posts
    Registered:
    26 Jul 2012
    01 Apr 2011
    Link to this post
    Saw where others had updated the web server hosts file with the IP and host name.  This fixed the problem for us.  The site content can be updated now.
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Apr 2011
    Link to this post
    Hello Brenda,

    The issue could be caused by Filrewall as well - when the service call is blocked.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

  12. Paul
    Paul avatar
    5 posts
    Registered:
    11 Feb 2011
    07 Apr 2011
    Link to this post
    Hi there,
    I have started to deploy my first SiteFinity (4.0) site and have the same problem described here - alert box with "There was no endpoint listening at http://<myactualdomain>.co.uk/defaultworkflows/pagesApprovalWorkflow.xamlx that could accept the message.  This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details." when attempting to publish a page. I have followed this thread and added the "WorkflowBaseUrl" and also added the 127.0.0.1 in the Advanced Website Identification in IIS... and even tried the hosts file mod, but none of these have worked for me! Where should I be looking to resolve this?  The actual files that it's looking for does not physically exist (I'm guessing it's URL re-writing), so I dont know where to look?
  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Apr 2011
    Link to this post
    Hi Paul,

    You alter the host and the request is not correct or there is something that blocks the the service call. These are the reasons for the error. We carefully debugged the code and there is no other case. There are several customers reported the same issue and it turned out that thy change the host or firewall blocks the request.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

  14. FlR
    FlR avatar
    49 posts
    Registered:
    05 Oct 2010
    24 May 2011
    Link to this post
    What should we do in the case when the website is on the same ip with other websites (basically shares the ip address)
  15. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 May 2011
    Link to this post
    Hi ,

    This should not be a problem if you do not alter the host somehow. Most of the shred hosting uses one IP with multiple domains. It is the same if you have one domain with dedicated IP and multiple subdomains.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  16. Brett
    Brett avatar
    36 posts
    Registered:
    23 Jul 2010
    28 Jun 2011
    Link to this post
    I am also encountering this problem. My scenario is this...

    Sitefinity 4.1 website is deployed to production shared server at M6. The DNS has not been pointed yet as the plan was to populate the site with content in the production environment before 'launch'. We have changed the hosts file in our machine to be able to access the site. We can view the site perfectly and access the admin, but when we try to publish a page we get the 'There was no endpoint listening at http://domain.com/DefaultWorkflows/PagesApprovalWorkflow.xamlx that count accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.'

    Obviously, in a shared hosting environment, we cannot access IIS to make any changes. What do we need to do to be able to do to publish pages and let the client finish content before we flip DNS, and after we flip the DNS live, will we still have the same problem?

    **We also have already tried the baseworkflowurl workaround with no luck.

    Thanks,

    Brett
  17. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Jun 2011
    Link to this post
    Hello Brett,

    The error says that when the application tries to access PagesApprovalWorkflow.xamlx then this url does not exist on the server. The reason for this is some changes to the host, host header, network mapping.
    There is a property WorkflowBaseUrl under  Administration >> Settings >> Advanced >> System >> ServicePath that you can set to the real host so that the xaml will be found.

    Most probably something at your end routes the url and changes the host which misleads Sitefinity. This is why setting the WorWorkflowBaseUrl is the option that should fix the issue if you use the proper host.

    I prepared a code for you that you can use to test the host that is returned when you try to publish a page. I also attached a video with detailed steps that you should follow. You can test the code several times and observe what it returns and how it behaves.

    1. Create and register a simple user control with a button

    http://www.sitefinity.com/40/help/developers-guide/sitefinity-essentials-controls-adding-controls-to-the-toolbox.html

    control template

    <asp:Button runat="server" ID="Button1" Text="CallWorflowFunction" />

    code behind

    Copy Code
    Copy Code
    protected void Page_Load(object sender, EventArgs e)
    {
       // subscribes for click event of the button
        this.Button1.Click += new EventHandler(Button1_Click);
         
    }
        
    void Button1_Click(object sender, EventArgs e)
    {
        
        // call our method that is going to publish the Draft page
        CallData();
    }  
        
        
    private Dictionary<string, string> contextBag;
    private string GetHost()
    {
        
       // gets the host this is one of the important parts of the code
        Uri url = SystemManager.CurrentHttpContext.Request.Url;
        return string.Concat("http://", url.Authority);
    }
        
    public string CallData()
    {
       // sets the page ID and other variables like workflow xaml
        var pageID = new Guid("88b6e8ba-311d-439d-ba91-bc02c950bda1");
        var wokflowUrl = "~/DefaultWorkflows/PagesApprovalWorkflow.xamlx";
        contextBag = new Dictionary<string, string>();
          
        contextBag.Add("ContentType", "Telerik.Sitefinity.Pages.Model.PageNode");
        var baseUrl = Telerik.Sitefinity.Configuration.Config.Get<Telerik.Sitefinity.Services.SystemConfig>().ServicesPaths.WorkflowBaseUrl;
        var serviceUrl = (String.IsNullOrEmpty(baseUrl) ? this.GetHost() : baseUrl) + VirtualPathUtility.ToAbsolute(wokflowUrl);
        var endpointAddress = new System.ServiceModel.EndpointAddress(serviceUrl);
        var binding = new System.ServiceModel.BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.None) { MaxReceivedMessageSize = 2147483647, MaxBufferSize = 2147483647 };
        binding.AllowCookies = false;
        
        var client = new Telerik.Sitefinity.ContentWorkflows.ServiceClient(binding, endpointAddress);
        using (new System.ServiceModel.OperationContextScope(client.InnerChannel))
        {
        
            var httpContext = SystemManager.CurrentHttpContext;
            var headers = httpContext.Request.Headers;
        
            System.ServiceModel.Channels.HttpRequestMessageProperty request = new System.ServiceModel.Channels.HttpRequestMessageProperty();
        
            string cookieHeader = string.Empty;
        
            for (var i = 0; i < SystemManager.CurrentHttpContext.Response.Cookies.AllKeys.Count(); i++)
            {
                cookieHeader += httpContext.Response.Cookies[i].Name + "=" + httpContext.Response.Cookies[i].Value;
                if (i != (httpContext.Response.Cookies.AllKeys.Count() - 1))
                {
                    cookieHeader += "; ";
                }
            }
        
            request.Headers[System.Net.HttpRequestHeader.Cookie] = cookieHeader;
            request.Headers[System.Net.HttpRequestHeader.Referer] = this.GetHost();
        
            foreach (string headerKey in headers.Keys)
            {
                if (headerKey.StartsWith("SF_", StringComparison.OrdinalIgnoreCase))
                {
                    request.Headers.Add(headerKey, headers[headerKey]);
                }
            }
        
            contextBag.Add("userHostAddress", HttpContext.Current.Request.UserHostAddress);
        
            System.ServiceModel.OperationContext.Current.OutgoingMessageProperties[System.ServiceModel.Channels.HttpRequestMessageProperty.Name] = request;
        
            var workflowDefinitionId = Guid.Empty;
            return client.SendMessage("Publish", false, workflowDefinitionId, pageID, null, contextBag);
        }
    }

    check the value of

    • wokflowUrl
    • baseulr
    • serviceUrl

    and check the value returned by GetHost()


    Please check whether there are some related log errors in the machine log file, because it is possible that something blocks the client request - firewall, proxy etx.


    Also try to access the xaml directly from the browser and see if there is an error you the browser renders the file correctly

    http://yourhost/DefaultWorkflows/PagesApprovalWorkflow.xam

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  18. Brett
    Brett avatar
    36 posts
    Registered:
    23 Jul 2010
    29 Jun 2011
    Link to this post
    Ivan-

    Thank you for all your hard work. Unfortunately, I am unable to add the control to a page either. It definitely appears to be a path change issue. I have the path in the toolbox exactly as it should be. I also get a 404 when trying to browse directly to the xaml page, and I used the workflowbaseurl setting that you talked about as well...and nothing works. Please keep in mind that this site is in a shared hosting environment without the DNS for the domain pointed to it. I am accessing it by changing the hosts file in my machine to point to the IP of the server. I can provide you with a link to the site if you like. The front end works perfectly, and you can log in to the Sitefinity admin and access different areas of the admin. You just cannot do anything as far as edits or publishing.

    The site is hosted at M6 which is a Sitefinity hosting partner.

    Thanks for any help as I am completely stuck at the moment and have no way to let the client access the site to add/edit content before the site goes live.

    Brett
  19. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Jun 2011
    Link to this post
    Hi Brett,

    If you move the website to a local server and run it form IIS and our Project Manager are there any issues? The only reason for this message is changing in the main host, so the xaml could not be found.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  20. Brett
    Brett avatar
    36 posts
    Registered:
    23 Jul 2010
    29 Jun 2011
    Link to this post
    You got it. I have a copy of the site local, and it works perfectly.Development has just progressed to a point that the client would like to finish off content before launch (repointing DNS), and now I'm in this pickle.
  21. Ian
    Ian avatar
    75 posts
    Registered:
    25 Oct 2010
    30 Jun 2011
    Link to this post
    I now have the same issue. The site works on development machine and buildserver, but does not work on our live staging server.
  22. Ian
    Ian avatar
    75 posts
    Registered:
    25 Oct 2010
    30 Jun 2011
    Link to this post
    Okay, issue turned out to be UrlScan.ini again, needed to allow the PUT verb.

    Reference to this post: http://www.sitefinity.com/devnet/forums/sitefinity-4-x/bugs-issues/server-error-404---file-or-directory-not-found.aspx
  23. Grisha 'Greg' Karanikolov
    Grisha 'Greg' Karanikolov avatar
    156 posts
    Registered:
    30 Nov 2016
    04 Jul 2011
    Link to this post
    Hi guys,

    Apparently in some cases this is caused by Database size limitations that are reached. I think this would hardly happen on a dedicated server or more powerful hosting solutions, but those with shared hosting might want to take a look into that.

    Kind regards,
    Grisha 'Greg' Karanikolov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  24. Brett
    Brett avatar
    36 posts
    Registered:
    23 Jul 2010
    05 Jul 2011
    Link to this post
    Database size limitation is definitely not the issue in this case. M6 is the hosting company, which by the way is a Sitefinity hosting partner, and they told me they cannot allow the changes mentioned in the fix above and that we are basically just out of luck and they could offer nothing to help solve the problem. So, that leads me back to square one and not a clue what to do...with a client breathing down my neck that wants to put content into their new site so it can be launched to replace their old site.

    I'm wide open to any suggestions, and I need them sooner rather than later.
  25. VAT
    VAT avatar
    2 posts
    Registered:
    28 Aug 2012
    07 Jul 2011
    Link to this post
    i has the same problem on my system.

    I found my IIS is schizophrenic.
    What i mean is that on my IIS is more than one site with the same IP-adress.
    To solve this i set in my hosts file on server a entry with loopbackadapter IP to my sitefinityproject adress.

    now it works.

    best regards
    reto
  26. Brett
    Brett avatar
    36 posts
    Registered:
    23 Jul 2010
    07 Jul 2011
    Link to this post
    Thanks Reto, but I can't edit the hosts file on the server because the site is hosted on a shared hosting server. The site lives at M6, which is a Sitefinity hosting partner by the way...and they have responded to my support request and said there is nothing they can do. Makes me question the partnership between them and Sitefinity somewhat if neither can offer a solution to this issue.
  27. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Jul 2011
    Link to this post
    Hi Brett,

    The solution request not changed the host header and set the correct url in the configurations - WorkflowBaseUrl. Basically you are casing "not found exception" of the xaml.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  28. CMSGuru
    CMSGuru avatar
    42 posts
    Registered:
    15 Feb 2011
    07 Jul 2011
    Link to this post
    With this issue going on for 9 months, wouldn't it be easier to put a fix in so this won't be an issue for existing users or new users?
  29. Brett
    Brett avatar
    36 posts
    Registered:
    23 Jul 2010
    07 Jul 2011
    Link to this post
    Ivan-

    Thanks for your response, but I'm not sure what you mean. I have tried everything in this thread that I could...including changing the WorkflowBaseURL in the config. Anything that involves settings on the server I cannot access due to the site being staged on a shared server (Sitefinity Hosting Partner).

    I'll run through this one more time.

    The site is built on Sitefinity 4.1 and when I run the site locally, it runs just fine and I am able to do all edits, additions, publishes, etc. The site has been uploaded to a shared host for staging because it will live there once the DNS for the domain name is pointed to it. We have not currently done this because the client currently has an old site and do not want to flip to the new site until the content is populated. To do this we have to change the host file in the local machine (not the server) to be able to hit the site on the shared server via the domain (with no www). This allows us to see the staged site from the local machine, browse every page, log in to the admin and view the pages in the admin. Any page creation, adding of widgets or custom user controls to pages or publishing of pages does not work and gives the "There was no endpoint listening at http:\\website\Workflows\PagesApprovalWorkflow.xamlx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details." error.

    This error does not occur when I run the site from the project manager and visual studio locally...only on the stage. I have changed the WorkflowBaseURL in the admin to the same entry that I am using in the local hosts file to view the staged site and it does not help. I do not have access to the server host file or any of the config. I opened a support ticket with M6 and asked them to make some of the tweaks that I saw in this thread on the server side, but they said that they could not due to security issues they would introduce in a shared hosting environment, and would not be able to help me.

    Soooo, I am at a loss. All I am trying to do is give my clients the ability to administer their content in the staged environment to get their site ready for launch. This should not be this hard and was not difficult with Sitefinity 3.7, as we did it dozens of times, and in a shared hosting environment too. This is becoming a major issue in using Sitefinity going forward if we cannot find a way to accomplish what seems like should be a fairly simple thing.

    We are at a complete standstill in this project with a client that is rapidly becoming unhappy with the situation. They don't want to have to compile their content into emails and send to me, they want to enter it themselves and thus learn to use Sitefinity properly while they do. If we are forced to point the DNS to their site and basically 'launch' an unfinished site just so the content can be administered by them....they are going to be profoundly unhappy.

    Any assistance is appreciated, but pressue from the client is making me increasingly frustrated with the lack of a solution to this issue.

    Thanks,
  30. Solomon Shaffer
    Solomon Shaffer avatar
    22 posts
    Registered:
    18 Jan 2011
    02 Aug 2011
    Link to this post
    Brett,

    Were you able to resolve this issue? I have having the same issue with SP3 (4.1.1574.0). Very frustrating.

    Solomon
71 posts, 0 answered
1 2 3