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

Question

Question

The following libraries do not match the Laserfiche.RepositoryAccess reference

asked on August 3

Using an SDK activity in Workflow and getting the following error:
 

The following libraries do not match the Laserfiche.RepositoryAccess reference: {0}. Please make sure all references match the version of RA.

Here is my list of references:

When I went to add a reference, no Laserfiche items appear in this list.


I enabled file browsing and went to the GAC and tried to add the repository access and get this:



I clicked yes and the error message still does not resolve.  How would I fix this?
 

0 0

Answer

SELECTED ANSWER
replied on August 3

The version of RepositoryAccess reference needs to match the version of the RAScriptClass in the script itself.

Any scripts made in older versions will keep both their reference to the older RA (which newer versions of Workflow install for this purpose, from RepositoryAccess 9.2 and up) and the RAScriptClass version.

I've seen the Designer not immediately resolve the reference on some machines, but that usually that clears up in a few seconds or if you press Build(F6) in the script editor.

1 0

Replies

replied on August 3

What is the exact version of your Designer?

In your script editor, after listing the references, there should be a line saying something like "RAScriptClass" followed by a number. What is that number?

1 0
replied on August 3

It was 110.  I removed both the Laserfiche references and added back the 10.4.0 ones.  

The error changed to - 

The project currently contains references to more than one version of Laserfiche.RepositoryAccess, a direct reference to version 10.4.0.0 and an indirect reference (through 'WorkflowActivity.Scripting.RAScriptClass110.RASession') to version 11.0.0.0. Change the direct reference to use version 11.0.0.0 (or higher) of Laserfiche.RepositoryAccess.    \SDKScript\Script 1.vb

Then I just remade the entire workflow activity.  Copied and pasted the code into the new one and I guess it works now.  Something didnt seem to be updating in the original activity and I guess remaking it fixed whatever it didnt like.  Thanks for the followup.

0 0
SELECTED ANSWER
replied on August 3

The version of RepositoryAccess reference needs to match the version of the RAScriptClass in the script itself.

Any scripts made in older versions will keep both their reference to the older RA (which newer versions of Workflow install for this purpose, from RepositoryAccess 9.2 and up) and the RAScriptClass version.

I've seen the Designer not immediately resolve the reference on some machines, but that usually that clears up in a few seconds or if you press Build(F6) in the script editor.

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

Sign in to reply to this post.