Hexagon Geospatial
MENU

GeoMedia Smart Client

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Reply
Frequent Contributor
Posts: 81
Registered: ‎09-18-2018

Standalone Workflows - could not find the specified connection {WorkflowName}

[ Edited ]

Hi,

 

My GMSC verision is 16.5.323.9

 

when using a url to run a standalone workflow:

 

{servername}/WorkflowsStandalone/?workflow={WorkflowName}

 

I get this exception:

Result:

ExceptionCould not find the specified connection {WorkflowName}

 

For that in Workflow.config I added a connection string:

 

 

<appSettings>
 <add key="Debug" value="true"/>

</appSettings>

<connectionStrings>
<add name="WorkflowName" connectionString="Data Source={ServerName};Initial Catalog={database};User Id={userName};Password={password}" providerName="Intergraph.Emea.Data.SqlServerProvider"/>
</connectionStrings>

 

 

Capture.PNG

 

 

 

25.06.2019 08:28:32 ERROR - Controller Workflow has raised an exception in Action Index.
Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "Intergraph.Emea.Workflows.WorkflowController", name = "(none)".
Exception occurred while: Calling constructor Intergraph.Emea.Workflows.WorkflowDatabase(Intergraph.Emea.Workflows.IConnectionProvider connectionProvider).
Exception is: ConnectionNotFoundException - Could not find the specified connection RoadClosure.
-----------------------------------------------
At the time of the exception, the container was:

  Resolving Intergraph.Emea.Workflows.WorkflowController,(none)
  Resolving parameter "workflowControllerContext" of constructor Intergraph.Emea.Workflows.WorkflowController(Intergraph.Emea.Workflows.IWorkflowControllerContext workflowControllerContext)
    Resolving Intergraph.Emea.Workflows.DatabaseWorkflowControllerContext,(none) (mapped from Intergraph.Emea.Workflows.IWorkflowControllerContext, (none))
    Resolving parameter "database" of constructor Intergraph.Emea.Workflows.DatabaseWorkflowControllerContext(Intergraph.Emea.Workflows.IRequestProvider requestProvider, Intergraph.Emea.Workflows.IDescriptionProvider descriptionProvider, Intergraph.Emea.Workflows.IWorkflowDatabase database, Intergraph.Emea.Security.ISessionProvider sessionProvider, Intergraph.Emea.Workflows.IWorkflowNameProvider workflowNameProvider, Intergraph.Emea.Workflows.IAuthorizationProvider authorizationProvider, Intergraph.Emea.Workflows.ISettingProvider settingProvider, Intergraph.Emea.Globalization.Localization localization, Intergraph.Emea.Workflows.IAssemblyResolver assemblyResolver, Intergraph.Emea.Workflows.IReportProvider reportProvider, Intergraph.Emea.Workflows.IMapProvider mapProvider, Intergraph.Emea.Workflows.IWorkspaceProvider workspaceProvider)
      Resolving Intergraph.Emea.Workflows.WorkflowDatabase,(none) (mapped from Intergraph.Emea.Workflows.IWorkflowDatabase, (none))
      Calling constructor Intergraph.Emea.Workflows.WorkflowDatabase(Intergraph.Emea.Workflows.IConnectionProvider connectionProvider)

   at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
   at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)
   at Intergraph.Emea.Workflows.WorkflowControllerActivator.Create(RequestContext requestContext, Type controllerType)
   at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
   at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
   at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   --- Inner exception ---
Intergraph.Emea.Workflows.ConnectionNotFoundException: Could not find the specified connection RoadClosure.
   at Intergraph.Emea.SmartClient.Workflows.SmartClientWorkflowConnectionProvider.GetConnectionSettings()
   at lambda_method(Closure , IBuilderContext )
   at Microsoft.Practices.ObjectBuilder2.DynamicBuildPlanGenerationContext.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey)
   at lambda_method(Closure , IBuilderContext )
   at Microsoft.Practices.ObjectBuilder2.DynamicBuildPlanGenerationContext.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey)
   at lambda_method(Closure , IBuilderContext )
   at Microsoft.Practices.ObjectBuilder2.DynamicBuildPlanGenerationContext.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
   at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)

Without errors I found difficult to track what is happening. Any suggestion?

 

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.