Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
Forgot to add that the Commerce version we use is 8.13.1. Also we are using EPiServer Service API.
When logging the route data, the values seem to be fine:
{"controller":"AssetIntegration","action":"get","id":{}}
Even though, getting some interesting rows in the EPiServer log file:
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/EPiServer/CMS/8.3.0.0'
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/EPiServer/Shell/8.3.0.0'
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/EPiServer/Commerce/8.13.1.711'
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/EPiServer/EPiServer.Packaging.UI/3.2.2.0'
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/EPiServer/EPiServer.Commerce.Shell/8.13.1.711'
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/EPiServer/EPiServer.Commerce.Shell.ManagerIntegration/8.13.1.711'
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/episerver'
EPiServer.Shell.Web.Routing.ModuleRouteCollection: Not routing '~/api/AssetIntegration/get' since it doesn't start with '~/modules'
Can you dump RoutesTable content and see where in that list your route is registered?
Resolved the issue by updating every single reference there was in the project. Updating only Web API and EPiServer didn't fix it. Strange.....
I'm facing an issue where we need to add a Web API controller to our EPiServer project, but when calling it only error is received: No type was found that matches the controller named 'assetintegration'. I have also tried to install Commerce Rest API (https://github.com/BVNetwork/CommerceRestApi) but it’s the same with that. However we have no issues running the EPiServer Service API.
I have defined the API route in Global.asax:
GlobalConfiguration.Configuration.Routes.MapHttpRoute(
name: "CustomApiRoute",
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
);
Instead of the Global.asax I also tried to add InitializationModule for setting up te routing but this didn't help as well.
One strange thing I noticed, though, was that the API is reachable only when started in debug from Visual Studio.