Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
Make sure you don't have any code which call GlobalConfiguration.Configure(config => config.MapHttpAttributeRoutes()). By default ServiceAPI will register that - so you don't have to.
Regards.
/Q
In Quicksilver use this appsetting to get around the issue
<add key="episerver:serviceapi:maphttpattributeroutes" value="false" />
So I pulled down the latest QuickSilver source from the github repo, installed the EpiServer.ServiceAPI.Commerce package, and I'm getting the following error. Any suggestions?
Server Error in '/' Application.
A route named 'MS_attributerouteWebApi' is already in the route collection. Route names must be unique.
Parameter name: name
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: A route named 'MS_attributerouteWebApi' is already in the route collection. Route names must be unique.
Parameter name: name
Source Error:
Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\d32108b6\ada22941\App_global.asax.1jtrchz-.0.cs Line: 0
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.118.0