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

Question

Question

I dont have Laserfiche.DocumentServices

asked on March 12, 2018

Hi all,

 

Using my workflow (10.2) I can extract document from Laserfiche to Windows.

 

I shared my workflow with my customer but his version (9.2) and the reference Laserfiche.DocumentServices is missing.

 

This is my sdk

namespace WorkflowActivity.Scripting.SDKExport
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Data.SqlClient;
    using System.Text;
    using Laserfiche.RepositoryAccess;
    using Laserfiche.DocumentServices;

    public class Script1 : RAScriptClass102
    {
        protected override void Execute()
        {
            Laserfiche.DocumentServices.DocumentExporter DocEx = new Laserfiche.DocumentServices.DocumentExporter();

            // On traite le document entrée
            DocumentInfo DI = Document.GetDocumentInfo(this.BoundEntryId, RASession);

            // On récupère les informations des tokens pour générer le fichier pdf souhaité
            DocEx.ExportElecDoc(DI, Convert.ToString(GetTokenValue("chemin_complet")));
         }
    }
}

 

I need some help please.

Thanks in advance.

Regards

0 0

Answer

SELECTED ANSWER
replied on March 19, 2018

Hi Olivier,

 

Check your workflow administration console and see what your script reference level is. I have mine set to all. If yours is set to none, change it to LFSO Interops or all and see whether that works for you?

 

2 0
replied on March 19, 2018

Hi Aaron,

 

Ok I checked "All assemblies"

 

Now I have a lot of reference XD

I could find my reference.

 

 

Which one should I take? v9.1 or 9.2?

 

0 0
replied on March 19, 2018

I would assume that because he is running 9.2, you should select the 9.2 version.

1 0
replied on March 19, 2018

Thank you Aaron, it's working !

1 0

Replies

replied on March 12, 2018 Show version history

Hi Olivier,

He will need to add a reference to Document Services inside the script. He will also need to make sure the RAScriptClass is set to his version as well.

2 0
replied on March 13, 2018

Your script is a RAScriptClass102. You can't just copy and paste it as a whole in Workflow 9.2. You can copy its contents, but as Aaron said above, you need to add a reference to DocumentServices 9.2 to match RepositoryAccess 9.2.

0 0
replied on March 13, 2018 Show version history

Hi Aaron, and Miruna,

 

thanks for your return. I didn't have the reference Laserfiche.DocumentServices

 

I added it from "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Laserfiche.DocumentServices\v4.0_9.2.0.0__3f98b3eaee6c16a6"

 

 

and changed in my script

" public class Script1 : RAScriptClass102 " to " public class Script1 : RAScriptClass92 "

 

The script's error is gone.

Then I run the workflow.

 

Now, I have a complication !

 

The workflow's service is now still stopping

 

Each time I'm trying to launch it, it run and stop

The configuration manager generates an error too

 

I tried to "repair" it.

 

 

But like the Workflow's service, the configurations back-turn to the error.

 

When I'm trying to launch Workflow Designer, I have this error

 

Impossible de créer la connexion au Serveur Workflow 'localhost'.

Exception
        Laserfiche.Workflow.WorkflowServerNotFoundException:
Impossible de créer la connexion au Serveur Workflow 'localhost'.

Trace d'empilage
        Client trace
        à Laserfiche.Workflow.Internal.WorkflowServerClient.Connect(ConnectionOptions options)
        à Laserfiche.Workflow.WorkflowConnection.Connect()
        à Laserfiche.Workflow.WorkflowApplication.ConnectToServer(WorkflowConnection connection)
        à Laserfiche.Workflow.WorkflowApplication.Open()
        à Laserfiche.Workflow.UI.ConnectingToServerDialog.ConnectToServer(Object state)
        

Data items: 1
AlreadyLogged: True

Exception interne
        Exception
                System.ServiceModel.EndpointNotFoundException:
Connexion à net.tcp://localhost:8085/ManagementService impossible. La tentative de connexion a duré pendant une période de 00:00:02.0617476. Code d'erreur TCP 10061 : Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8085. 

        Trace d'empilage
                
                Server stack trace:
                à System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
                à System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
                à System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
                à System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
                à System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
                à System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
                à System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
                à System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
                à System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
                à System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
                à System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
                à System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
                à System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
                
                Exception rethrown at [0]:
                à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
                à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
                à Laserfiche.Workflow.IWorkflowServerApi.Connect(ConnectionOptions options)
                à Laserfiche.Workflow.Internal.WorkflowServerClient.EnsureChannelReady()
                à Laserfiche.Workflow.Internal.WorkflowServerClient.Connect(ConnectionOptions options)

Data items: 0

        Exception interne
                Exception
                        System.Net.Sockets.SocketException:
Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8085

                Trace d'empilage
                        à System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
                        à System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
                        à System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)

Data items: 0

I stoped the instance about my export and delete the workflow but I still have the errors.

 

I don't know what's going on and how to repair.

0 0
replied on March 13, 2018

There isn't enough information to troubleshoot. If your Workflow Server crashed, then the Designer error is legitimate. It can't connect to the server if the server is not running.

0 0
replied on March 13, 2018 Show version history

I was on the server.

It's running.

What do you need?

 

Under the Windows' evenement, I have now a lot of error.

1 of them is :

Nom de l’application défaillante Laserfiche.Workflow.Service.exe, version : 9.2.0.167, horodatage : 0x542030eb
Nom du module défaillant : KERNELBASE.dll, version : 6.1.7601.23915, horodatage : 0x59b94f2a
Code d’exception : 0xe0434352
Décalage d’erreur : 0x000000000001a06d
ID du processus défaillant : 0x7bc
Heure de début de l’application défaillante : 0x01d3980f1fdb2ba8
Chemin d’accès de l’application défaillante : C:\Program Files\Laserfiche\Laserfiche Workflow 9\Laserfiche.Workflow.Service.exe
Chemin d’accès du module défaillant: C:\Windows\system32\KERNELBASE.dll
ID de rapport : 7bca892b-265c-11e8-a7dd-00155d013e03

 

It looks like KERNELBASE.dll is corrupted

0 0
replied on March 19, 2018

Hi Aaron, hi Miruna,

 

I resolved my last bug and now, I'm trying to resolve the original one.

Like I said, I dont have the reference " Laserfiche.DocumentServices ".

 

 

How can I add it?

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

Sign in to reply to this post.