I am having a security issue with multi company baqs and sql. In the non owning company I am getting an error connecting to sql. I have scoured this site and EpicCare without finding an answer.
The baq works in my company and works for me in the new company, but fails for users that only have access to that company. I know it is company related because if I give a user from the non owning company my company the baqs work.
Any ideas on what setup I missed?
Thanks
Greg
From app server event log:
The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=15355; handshake=6; â>
Also this.
Ice.Common.EpicorServerException: The type initializer for âIce.EulkLicense.LicenseCacheBase1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Ice.EulkLicense.LicenseCacheBase
1â threw an exception. â> Ice.Common.EpicorServerException: Unable to determine license source. Check LicenseSource appsetting in web.config â> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. â> System.Data.SqlClient.SqlException: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=15355; handshake=6; â> System.ComponentModel.Win32Exception: The wait operation timed out
â End of inner exception stack trace â
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, TaskCompletionSource1 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, TaskCompletionSource1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource
1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.Open() at Epicor.Data.Provider.EpiConnection.Open() in C:\_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.System\Data\EpiProvider2\EpiConnection.cs:line 229 at System.Data.Entity.Infrastructure.Interception.InternalDispatcher
1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action2 operation, TInterceptionContext interceptionContext, Action
3 executing, Action3 executed) at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) at System.Data.Entity.Core.EntityClient.EntityConnection.Open() --- End of inner exception stack trace --- at System.Data.Entity.Core.EntityClient.EntityConnection.Open() at Ice.Services.ContextFactory.CreateContext() in C:\_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.System\Services\ContextFactory.cs:line 57 at Ice.Services.ContextFactory.CreateContext[TDataContext]() in C:\_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.System\Services\ContextFactory.cs:line 39 at Ice.EulkLicense.DatabaseLicenseProvider.InitCache() in C:\_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\EULKLicense\DatabaseLicenseProvider.cs:line 194 at Ice.EulkLicense.DatabaseLicenseProvider..ctor() in C:\_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\EULKLicense\DatabaseLicenseProvider.cs:line 26 at Ice.EulkLicense.LicenseCache.CacheInitFactory.CreateProvider() in C:\_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\EULKLicense\LicenseCache.cs:line 54 --- End of inner exception stack trace --- at Ice.EulkLicense.LicenseCache.CacheInitFactory.CreateProvider() in C:\_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\EULKLicense\LicenseCache.cs:line 64 at System.Lazy
1.CreateValue()
at System.Lazy1.LazyInitValue() at Ice.EulkLicense.LicenseCacheBase
1âŚcctor() in C:_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.EULK\LicenseCacheBase.cs:line 166
â End of inner exception stack trace â
at Epicor.Hosting.Session.IsModuleInstalled(Guid installationID, Guid moduleID) in C:_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\Hosting\Session.cs:line 1262
at Epicor.Hosting.Session.IsLicenseTypeInstalled(Guid installationID, Guid sessionType) in C:_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\Hosting\Session.cs:line 1286
at Epicor.Hosting.Session.SetCompany(String companyID) in C:_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\Hosting\Session.cs:line 252
at Epicor.Hosting.SessionâŚctor(String companyID, String userID, Guid sessionType) in C:_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\Hosting\Session.cs:line 63
at Erp.Extensibility.SessionProvider.ErpSessionBuilder.GetSession(String companyID, String userID, Guid sessionType) in C:_releases\ERP\ERP11.1.200.0\Source\Server\Internal\Extensibility\SessionProvider\ErpSessionBuilder.cs:line 21
at Epicor.Hosting.CallContext.CreateSession(Operation op, CallSettings callSettingsHeader) in C:_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\Hosting\CallContext.cs:line 170
at Epicor.Hosting.CallContext.Create(Operation op) in C:_releases\ICE\ICE4.1.200.10\Source\Server\Framework\Epicor.Ice\Hosting\CallContext.cs:line 132
at Ice.Security.AuthorizationManager.CheckAccess(OperationContext operationContext, Message& message) in C:_releases\ICE\ICE4.1.200.10\Source\Server\Hosting\Wcf\Ice.Server.Wcf.Core\Security\AuthorizationManager.cs:line 84
â End of inner exception stack trace â