jonm_f39390jfsld

Laserfiche Install - Failing for database connection

0 votes


I am hoping someone can point me in the correct direction.  We have a client that would like to use Onespan for document signing from a Laserfiche forms process.  I am unable to get it installed and working in my development environment.  I have read and worked through the instructions, but my Onespan integration does not function correctly.  The Laserfiche installation works correctly.
 
•    In the workflow administration, I see the web service and may test the url successfully.
•    In the Workflow designer however, I do not see *any* onespan components
 
•    In the web client for the repo, I see context menu choices for ‘send with onespan’ and ‘onespan’ but can not configure or use it successfully.
•    In the browser console, I see failures connecting to the data source.  I have recreated the data source a number of times with different naming conventions/drivers and have had no luck resolving.  

I’m running Windows 10 Enterprise and Laserfiche 11.  Things like user groups, user rights, .NET libraries etc seem to be configured as they should be. The OneSpan sandbox is working, and I can kick off transactions fine from LF by mailing the user an URL, but the customer would like the user interaction bits of this process to be end-to-end within LF, hence my need to get the LF-Onespan integration understood and functional.

Any help in diagnosing and correcting this would be appreciated.

Thanks
 

 


Reply to: Laserfiche Install - Failing for database connection

0 votes

Hi Jon,

 

Thanks for the elaborated description about the issue.

 

First, we need to fix the connection to the database. Can you please make sure that you have used the encrypted the password using the ContentEncryptor app ?

As the installation is done, you must update the password in this file - “C:\Program Files\Laserfiche\Web Access\Web Files\Config\WebAccessConfig.xml”

 

To have the OneSpan Sign custom activities in the LF workflow designer, you need to add the custom activities in the tools of the LF WF designer and also need to add the custom activities in the Workflow Administrative window. Please follow the steps from page 9 to 13 in the Installation guide.

 

You can also find the details of the error message in the windows event viewer under "Windows Logs\Appliaction". The source name is "OneSpanSign"

 

Please let us know if these does not resolve your issue. 

 

Thanks,

Moshiur Reza

 

 


Reply to: Laserfiche Install - Failing for database connection

0 votes

Hi Jon,

 

Please let us know if you any other question related to your database connectivity issue.

 

Thanks,

Moshiur Reza

 


Reply to: Laserfiche Install - Failing for database connection

0 votes

Hi Moshiur, 

in answer to your comment/advice:
 

1. First, we need to fix the connection to the database. Can you please make sure that you have used the encrypted the password using the ContentEncryptor app ?


Yes, done
 

2. As the installation is done, you must update the password in this file - “C:\Program Files\Laserfiche\Web Access\Web Files\Config\WebAccessConfig.xml”

Also done.
 

3. To have the OneSpan Sign custom activities in the LF workflow designer, you need to add the custom activities in the tools of the LF WF designer and also need to  add the custom activities in the Workflow Administrative window. Please follow the steps from page 9 to 13 in the Installation guide.

Details Below

Three PDFs come with the installation:

  • "ONE SPAN SIGN FOR LASERFICHE WEB CLIENT" (User Guide) has pages 9-13, but do not seem relevant to WF (or even attainable without a working DB connection)
  • "ONESPAN SIGN FOR LASERFICHE WORKFLOW" (User Guide) has pages 9-13, but seem to be a recitation of features/walk through on use for completed installations 
  • The third PDF "ONESPAN SIGN FOR LASERFICHE WEB CLIENT & WORKFLOW" is the only one of the three actually labelled as an installation guide, but does not have the page range (9-13) specified.   

Please clarify/advise if there is missing documentation.
 

4. You can also find the details of the error message in the windows event viewer under "Windows Logs\Appliaction". The source name is "OneSpanSign"

Details Below

I see two database connectivity errors both with event ID "0" under "Windows Logs\Application" having a source of "OneSpanSign".  It is possible the second error listed, which occurred less frequently was due to deleting and recreating the DSN / messing with database settings during my troubleshooting.  See the issue and client's resolution at Laserfiche Connector - Failed to connect to database | OneSpan Community Platform for reference.  

First:

12/6/2022 6:01:56 PMError message from exception - 
Failed to connect to Database.
   at WebAccessCustomActions.CustomActions.InitialLoad(IDictionary`2 args)
System.Collections.Generic.IDictionary`2[System.String,System.Object] InitialLoad(System.Collections.Generic.IDictionary`2[System.String,System.Object])
Exception

Second:

12/6/2022 9:39:18 AMError message from exception - 
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
   at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
   at System.Data.Entity.SqlServer.SqlProviderServices.<>c__DisplayClass33.<UsingConnection>b__32()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass1.<Execute>b__0()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
   at System.Data.Entity.SqlServer.SqlProviderServices.UsingMasterConnection(DbConnection sqlConnection, Action`1 act)
   at System.Data.Entity.SqlServer.SqlProviderServices.CreateDatabaseFromScript(Nullable`1 commandTimeout, DbConnection sqlConnection, String createDatabaseScript)
   at System.Data.Entity.SqlServer.SqlProviderServices.DbCreateDatabase(DbConnection connection, Nullable`1 commandTimeout, StoreItemCollection storeItemCollection)
   at System.Data.Entity.Migrations.Utilities.DatabaseCreator.Create(DbConnection connection)
   at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
   at System.Data.Entity.Internal.DatabaseCreator.CreateDatabase(InternalContext internalContext, Func`3 createMigrator, ObjectContext objectContext)
   at System.Data.Entity.Database.Create(DatabaseExistenceState existenceState)
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at EslConnector.LFIntegrationDBAccess.TransactionDataAccessHelper.GetDefaultSettingsInfoByConnectionProfile(Int64 connectionProfileId)
   at WebAccessCustomActions.CustomActions.SaveDefaultConfigurations(IDictionary`2 args)
Void .ctor(System.Data.ProviderBase.DbConnectionPoolIdentity, System.Data.SqlClient.SqlConnectionString, System.Data.SqlClient.SqlCredential, System.Object, System.String, System.Security.SecureString, Boolean, System.Data.SqlClient.SqlConnectionString, System.Data.SqlClient.SessionData, System.Data.ProviderBase.DbConnectionPool, System.String, Boolean, System.Data.SqlClient.SqlAuthenticationProviderManager)
SqlException

Error message from inner exception - 
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
   at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
   at System.Data.Entity.SqlServer.SqlProviderServices.<>c__DisplayClass33.<UsingConnection>b__32()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass1.<Execute>b__0()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
   at System.Data.Entity.SqlServer.SqlProviderServices.UsingMasterConnection(DbConnection sqlConnection, Action`1 act)
   at System.Data.Entity.SqlServer.SqlProviderServices.CreateDatabaseFromScript(Nullable`1 commandTimeout, DbConnection sqlConnection, String createDatabaseScript)
   at System.Data.Entity.SqlServer.SqlProviderServices.DbCreateDatabase(DbConnection connection, Nullable`1 commandTimeout, StoreItemCollection storeItemCollection)
   at System.Data.Entity.Migrations.Utilities.DatabaseCreator.Create(DbConnection connection)
   at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
   at System.Data.Entity.Internal.DatabaseCreator.CreateDatabase(InternalContext internalContext, Func`3 createMigrator, ObjectContext objectContext)
   at System.Data.Entity.Database.Create(DatabaseExistenceState existenceState)
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at EslConnector.LFIntegrationDBAccess.TransactionDataAccessHelper.GetDefaultSettingsInfoByConnectionProfile(Int64 connectionProfileId)
   at WebAccessCustomActions.CustomActions.SaveDefaultConfigurations(IDictionary`2 args)
Void .ctor(System.Data.ProviderBase.DbConnectionPoolIdentity, System.Data.SqlClient.SqlConnectionString, System.Data.SqlClient.SqlCredential, System.Object, System.String, System.Security.SecureString, Boolean, System.Data.SqlClient.SqlConnectionString, System.Data.SqlClient.SessionData, System.Data.ProviderBase.DbConnectionPool, System.String, Boolean, System.Data.SqlClient.SqlAuthenticationProviderManager)
SqlException


Please reply with:

1. Any clarification with regard to the installation guide I should be consulting
2. Any insight related to the DSN configuration taking into account the error messages I have posted and the issue outlined by Chuck.at.Gastons Onepan support post. (linked above)
 

Thanks for your help in this.

 

 


Reply to: Laserfiche Install - Failing for database connection

0 votes

Hi Jon,

 

Please send us an email at [email protected] 

We will take it from there.

 

Thanks,

Moshiur Reza


Reply to: Laserfiche Install - Failing for database connection

0 votes

Hi Jon,

 

We have your contact. We will contact you asap.

 

 

Thanks,

Moshiur Reza


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off