You are viewing limited content. For full access, please sign in.

Question

Question

Workflow Service Task Returning: The remote server returned an error: (401) Unauthorized.

asked on July 12, 2016

Hi everyone,

I'm trying to launch a Workflow Service Task, from Laserfiche Form but when the task is executed the instance monitor shows the task suspended. and the following log:

Error 7/12/2016 11:24:18 AM 
An unexpected error has occurred. [LFF502-UnexpectedError]

Details:
URL: 
Error: UnexpectedError
Date: 7/12/2016 11:24:18 AM (Pacific Standard Time)
HTTP Status Code: 500
Business Process Name: XXXXXXXXXXXXX
Business Process ID: 34
Instance ID: 360

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]


Inner exception: System.Net.WebException
Message: The remote server returned an error: (401) Unauthorized.
   at System.Net.HttpWebRequest.GetResponse()
   at Laserfiche.Forms.Routing.LFWorkflowService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus)
   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)

 

This task is executed under Windows Server 2012 R2 Standard

 

However if I export and import the file into my development machine (Windows 10) the task is executed correctly.

 

Both configurations are:

Laserfiche Server 10

Laserfiche Workflow 10.0.0.249

Laserfiche Forms 10.0.0.1154

 

Is there any settings for Windows Sever that i'm missing in order to have the task executed?

 

 

Thanks

1 0

Answer

SELECTED ANSWER
replied on July 12, 2016

Please check IIS manager> default web site> workflow> click on authentication , which modes are enable? Has Windows Authentication be enabled? Enable it if it is not enabled and restart IIS to check whether it works.

If Windows Authentication is already enabled, what account is configured to run Laserfiche Forms Routing Service in Windows Service? Are Forms and Workflow installed on same machine or different machines? You can try whether enable Anonymous Authentication can make it work.

1 0
replied on July 13, 2016

Thanks Anonymous Aunthentication works

0 0
replied on August 22, 2016

We have a Client that is encountering this very error message.

The message is being encountered in Laserfiche Forms from their Forms Server in the DMZ. The Business Process includes a workflow. In the results, it will show the Workflow as 'Suspended' even though when you check Workflow on the LF server, it shows the process as completed.

 

To get rid of this error and avoid the 'Suspended' step, enabling 'Anonymous Authentication' for the Workflow site resolves this issue.

 

However, Client IT has concerns that this will open their system to vulnerabilities and prefers another solution. Is there any other solution or workaround to address this?

0 0
replied on September 1, 2016

You can change the Log on as for Laserfiche Forms Routing Service to a windows account that can be authenticated to the Workflow server and keep workflow server to use windows authentication.

0 0
replied on September 15, 2022

Can we just whitelist allowed server IPs and keep the website anonymous and the services local system instead?

If a service is running as a windows user and something goes wrong with that account, the service might go offline. I have never seen anything go wrong with local system without the system itself going down.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.