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

Question

Question

Repository Registration

SDK
asked on July 30, 2014

 Greetings,

using the repositoryAccess83 I am trying to connect the session as I have several times, however this time I am getting an error.  Here is the configuration;

 

  1. Visual Studio 2012
  2. vb.net
  3. LF SDK 8.3
  4. .net 4.5
  5. CPU = X86

 

Here is the code;

Imports LFSO83Lib

Imports DocumentProcessor83

Imports Laserfiche.RepositoryAccess

 

' Using the overloaded RepositoryRegistration constructor

myRepoReg = New RepositoryRegistration(My.Settings.LFServerName, My.Settings.LFRepository)

mySess.Connect(myRepoReg)

mySess.LogIn(My.Settings.LFUserID, My.Settings.LFPassword)

 

the error is generated by the MySess.connect(myRepoReg) line, with the following error.

 

Error 1 Value of type 'ScanTraxxConverter.RepositoryRegistration' cannot be converted to 'Laserfiche.RepositoryAccess.RepositoryRegistration'. H:\_Development\VS2012\VB.Net\PaperVisionConverter_Access\ControlMod.vb 247 24 ScanTraxxConverter

 

Any Assistance would be appreciated.
 

0 0

Answer

SELECTED ANSWER
replied on August 1, 2014

Hi Phil, 

 

If your question has been answered, please let us know by clicking the "This answered my question" button on the response.

 

If you still need assistance with this matter, just update this thread. Thanks!

0 0

Replies

replied on July 30, 2014 Show version history

Based on the error, it sounds like you have another class in your project called RepositoryRegistration. Either rename that class or fully qualify the name of the RA class when you call its constructor:

Dim myRepoReg As Laserfiche.RepositoryAccess.RepositoryRegistration

myRepoReg = New Laserfiche.RepositoryAccess.RepositoryRegistration(My.Settings.LFServerName, My.Settings.LFRepository)

As you can see this is quite verbose, so the preferred course of action is to rename the ScanTraxxConverter.RepositoryRegistration.

0 0
replied on July 31, 2014

Thanks Mathew,

I do not remember creating that class.  thanks for the second set of eyes!!!

 

Phil

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

Sign in to reply to this post.