[ModelServiceException: Content Service Capability not found in Discovery Service.]
Sdl.Web.ModelService.ModelServiceClient.GetModelServiceUri(String uri) in C:\Jenkins\workspace\DXAuto\stash\develop\net\build_webapp\Sdl.Web.ModelService\ModelServiceClient.cs:246 Sdl.Web.ModelService.ModelServiceClient..ctor(String modelServiceUri) in C:\Jenkins\workspace\DXAuto\stash\develop\net\build_webapp\Sdl.Web.ModelService\ModelServiceClient.cs:66 Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider..ctor() in C:\Jenkins\workspace\DXAuto\stash\develop\net\build_webapp\Sdl.Web.Tridion\ModelService\DefaultModelServiceProvider.cs:64 lambda_method(Closure , IBuilderContext ) +124
Microsoft.Practices.ObjectBuilder2.<>c__DisplayClass1.b__0(IBuilderContext context) +32
Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +337
Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +391
Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +453

[ResolutionFailedException: Resolution of the dependency failed, type = "Sdl.Web.Common.Interfaces.IModelServiceProvider", name = "(none)". Exception occurred while: Calling constructor Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider(). Exception is: ModelServiceException - Content Service Capability not found in Discovery Service. ----------------------------------------------- At the time of the exception, the container was:

Resolving Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider,(none) (mapped from Sdl.Web.Common.Interfaces.IModelServiceProvider, (none)) Calling constructor Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider() ]
Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable1 resolverOverrides) +553
Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides) +20
Sdl.Web.Common.Configuration.SiteConfiguration.GetProvider(Func
2 dependencyResolver, Boolean isOptional) in C:\Jenkins\workspace\DXAuto\stash\develop\net\build_webapp\Sdl.Web.Common\Configuration\SiteConfiguration.cs:135 Sdl.Web.Common.Configuration.SiteConfiguration.InitializeProviders(Func`2 dependencyResolver) in C:\Jenkins\workspace\DXAuto\stash\develop\net\build_webapp\Sdl.Web.Common\Configuration\SiteConfiguration.cs:119 Sdl.Web.Site.MvcApplication.Application_Start() in C:\Jenkins\workspace\DXAuto\stash\develop\net\build_webapp\Site\Global.asax.cs:134

[HttpException (0x80004005): Resolution of the dependency failed, type = "Sdl.Web.Common.Interfaces.IModelServiceProvider", name = "(none)". Exception occurred while: Calling constructor Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider(). Exception is: ModelServiceException - Content Service Capability not found in Discovery Service. ----------------------------------------------- At the time of the exception, the container was:

Resolving Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider,(none) (mapped from Sdl.Web.Common.Interfaces.IModelServiceProvider, (none)) Calling constructor Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider() ]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +529
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +169
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +169
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +396
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +333

[HttpException (0x80004005): Resolution of the dependency failed, type = "Sdl.Web.Common.Interfaces.IModelServiceProvider", name = "(none)". Exception occurred while: Calling constructor Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider(). Exception is: ModelServiceException - Content Service Capability not found in Discovery Service. ----------------------------------------------- At the time of the exception, the container was:

Resolving Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider,(none) (mapped from Sdl.Web.Common.Interfaces.IModelServiceProvider, (none)) Calling constructor Sdl.Web.Tridion.ModelService.DefaultModelServiceProvider() ]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +124 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +700

  • The error seems to me, you are trying to run DXA 2.0 web application and it's trying to get the model service URL it's not registered with the discovery. Please edit your question and explain a bit more detail to help you? what have you done? what is the version of the DXA? Did you installed model service and registered with discovery? – Velmurugan Sep 13 at 7:26
  • DXA 2.0, After installing and importing topology. I run .\web-install.ps1 -distDestination "C:\inetpub\wwwroot\DXA_Staging" -webName "DXA Staging" -sitePort 93 -discoveryServiceUrl localhost:8082/discovery.svc – fitnet Sep 13 at 7:53
  • Remove your comment and edit your question to add it as an update, did you installed model service and registered with discovery? – Velmurugan Sep 13 at 8:32
  • 1
    According to the error message (Content Service Capability not found in Discovery Service) the problem is not with the model service but with the content service. If you type 'java -jar discovery-registration.jar read', do you see the ContentServiceCapability? – Quirijn Sep 13 at 8:57

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.