Try our conversational search powered by Generative AI!

Forms Service API issues


I'm having all sorts of problems getting the Forms Service API to install or be seen by the website.

I've been following the only documentation I can find on the Forms Service API 
We have a solution with multiple projects in. The Core project has all the controllers, models etc in. The Web project has the views, scripts etc.

I've downloaded and installed EPiServer.Forms.ServiceApi 3.2.0 NuGet package against the core project. This also installed EPiServer.Service API 3.0.0, Microsoft.OData.Edm, Microsoft.Spatial, Microsoft.OData.Core, Microsoft.AspNet.OData, Microsoft.AspNet.WebApi.Owin.

After install and rebuild etc I get a 500 error. Log file mentions:
System.ArgumentException: A route named 'MS_attributerouteWebApi' is already in the route collection. Route names must be unique.
So I found out I had to comment out the config.MapHttpAttributeRoutes() in WepApiInitialization and add the attribute

Now the website works but I get a page not found following step 5 Verify that EPiServer.Forms.ServiceApi is working.

Our website already runs under https as instructed in step 4.

I do see the EPiServerServiceApi in the Admin, Config, Permissions for Functions area as mentioned in step 6.

Any idea on how to get any further?

Dec 13, 2017 16:10

I remember something along the lines...

what else modules you can installed? if step 5. fails - this most probably means that attribute based registration of the routes has not been successfully done..

Dec 14, 2017 0:40

I got past the MS_attributerouteWebApi error but still step 5 doesn't work.  I'm still at a loss.

Dec 14, 2017 9:36

I may not need this as I've found this link which shows a different way to get the forms data out.

Dec 14, 2017 12:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.