OData Action Gets 404 Due To Periods In URL

Following the tutorial at: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/odata-actions-and-functions I encountered 404 errors until I noticed the tutorial says to change the web.config file.  My original web.config contained: <add name=”ExtensionlessUrlHandler-Integrated-4.0″ path=”*.” verb=”*” type=”System.Web.Handlers.TransferRequestHandler” preCondition=”integratedMode,runtimeVersionv4.0″ /> while the tutorial says to change the path property to “/*” like this: <add name=”ExtensionlessUrlHandler-Integrated-4.0″ path=”/*” verb=”*” type=”System.Web.Handlers.TransferRequestHandler” preCondition=”integratedMode,runtimeVersionv4.0″ /> It worked but then…

1

OData Complex Type Containing an Entity Type Workaround

For OData Actions and POST I want to return a complex type which has a navigation property to an entity but that isn’t supported yet by Web API as Yi Ding replied to this question even though the v4 spec supports it: http://stackoverflow.com/questions/27207450/webapi-odata-v4-comlextype-cannot-have-an-entitytype As suggested I turned the complex type into an entity but the…