{"action":"created","issue":{"url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/2276","repository_url":"https://api.github.com/repos/OrchardCMS/OrchardCore","labels_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/2276/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/2276/comments","events_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/2276/events","html_url":"https://github.com/OrchardCMS/OrchardCore/issues/2276","id":354006268,"node_id":"MDU6SXNzdWUzNTQwMDYyNjg=","number":2276,"title":"Feature/Controller issue with version 1.0.0-beta3-68191","user":{"login":"jpiquot","id":6775094,"node_id":"MDQ6VXNlcjY3NzUwOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6775094?v=4","gravatar_id":"","url":"https://api.github.com/users/jpiquot","html_url":"https://github.com/jpiquot","followers_url":"https://api.github.com/users/jpiquot/followers","following_url":"https://api.github.com/users/jpiquot/following{/other_user}","gists_url":"https://api.github.com/users/jpiquot/gists{/gist_id}","starred_url":"https://api.github.com/users/jpiquot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpiquot/subscriptions","organizations_url":"https://api.github.com/users/jpiquot/orgs","repos_url":"https://api.github.com/users/jpiquot/repos","events_url":"https://api.github.com/users/jpiquot/events{/privacy}","received_events_url":"https://api.github.com/users/jpiquot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-08-25T11:44:08Z","updated_at":"2018-09-30T19:59:27Z","closed_at":"2018-09-13T19:51:08Z","author_association":"NONE","body":"Hi,\r\nI have an issue when using the build 68191. When initializing a new instance (App_Data/Sites directory deleted), I have the message below. I do not have any errors if I use 1.0.0-beta3-68190.\r\n\r\nThe MetadataController is in a thid party package (Microsoft.AspNetCore.OData 7.0.1).\r\n\r\nHow can I avoid this error?\r\n\r\n```\r\nAn unhandled exception occurred while processing the request.\r\nInvalidOperationException: Could not resolve feature for type MetadataController\r\nOrchardCore.Environment.Extensions.TypeFeatureProvider.GetFeatureForDependency(Type dependency) in TypeFeatureProvider.cs, line 21\r\n\r\nStack Query Cookies Headers\r\nInvalidOperationException: Could not resolve feature for type MetadataController\r\nOrchardCore.Environment.Extensions.TypeFeatureProvider.GetFeatureForDependency(Type dependency) in TypeFeatureProvider.cs\r\nOrchardCore.Mvc.ModularApplicationModelProvider.OnProvidersExecuted(ApplicationModelProviderContext context) in ModularApplicationModelProvider.cs\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.BuildModel()\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetDescriptors()\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context)\r\nMicrosoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.UpdateCollection()\r\nMicrosoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.get_ActionDescriptors()\r\nMicrosoft.AspNetCore.Mvc.Internal.AttributeRoute.GetTreeRouter()\r\nMicrosoft.AspNetCore.Mvc.Internal.AttributeRoute.RouteAsync(RouteContext context)\r\nMicrosoft.AspNetCore.Routing.RouteCollection.RouteAsync(RouteContext context)\r\nMicrosoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)\r\nMicrosoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\nMicrosoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)\r\nOrchardCore.Modules.ModularTenantRouterMiddleware.Invoke(HttpContext httpContext) in ModularTenantRouterMiddleware.cs\r\nOrchardCore.Modules.ModularTenantContainerMiddleware.Invoke(HttpContext httpContext) in ModularTenantContainerMiddleware.cs\r\nMicrosoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)\r\nMicrosoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/comments/425747298","html_url":"https://github.com/OrchardCMS/OrchardCore/issues/2276#issuecomment-425747298","issue_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/2276","id":425747298,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc0NzI5OA==","user":{"login":"jpiquot","id":6775094,"node_id":"MDQ6VXNlcjY3NzUwOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6775094?v=4","gravatar_id":"","url":"https://api.github.com/users/jpiquot","html_url":"https://github.com/jpiquot","followers_url":"https://api.github.com/users/jpiquot/followers","following_url":"https://api.github.com/users/jpiquot/following{/other_user}","gists_url":"https://api.github.com/users/jpiquot/gists{/gist_id}","starred_url":"https://api.github.com/users/jpiquot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpiquot/subscriptions","organizations_url":"https://api.github.com/users/jpiquot/orgs","repos_url":"https://api.github.com/users/jpiquot/repos","events_url":"https://api.github.com/users/jpiquot/events{/privacy}","received_events_url":"https://api.github.com/users/jpiquot/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T19:59:27Z","updated_at":"2018-09-30T19:59:27Z","author_association":"NONE","body":"When replacing the ModularApplicationContext by a custom one where I hardcoded the the Add of the OData module, it works!\r\n\r\n\r\n```\r\n\r\n       private IEnumerable<Module> GetModules()\r\n        {\r\n            var modules = new List<Module>\r\n            {\r\n                new Module(_environment.ApplicationName, true)\r\n            };\r\n\r\n            foreach (IModuleNamesProvider provider in _moduleNamesProviders)\r\n            {\r\n                modules.AddRange(provider.GetModuleNames().Select(name => new Module(name, name == _environment.ApplicationName)));\r\n            }\r\n            modules.Add(new Module(\"Microsoft.AspNetCore.OData\", false));\r\n            return modules;\r\n        }\r\n\r\n```"}}
{"actor":{"display_login":"jpiquot"}}