<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Create a Read-Only OData Endpoint </title><link>http://asp.net</link><pubDate>Tue, 26 Mar 2013 02:41:26 GMT</pubDate><generator>umbraco</generator><description>Comments for Create a Read-Only OData Endpoint </description><language>en</language><atom:link href="http://asp.net/rss/comments/43790" rel="self" type="application/rss+xml" /><item><title>Comment Posted by softer</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Mon, 11 Feb 2013 15:50:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018407</guid><description><![CDATA[ <p>I can&#39;t find MapODataRoute anywhere! In what assembly should it be?</p><p>I am using Microsoft.Data.OData.dll version 5.2.0.0</p><p>and System.Web.Http.OData version 0.3.0.0</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/softer.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by zlangner</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Tue, 12 Feb 2013 11:55:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018415</guid><description><![CDATA[ <p>This tutorial works grea if you&#39;re using the nightly builds from aspnetwebstacknightly. There are instructions on how to get these packages with NuGet at <a rel="nofollow" href="http://aspnetwebstack.codeplex.com/discussions/353867." target="_blank">aspnetwebstack.codeplex.com/</a></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/zlangner.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vduret</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Tue, 19 Feb 2013 05:53:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018454</guid><description><![CDATA[ <p>Is it possible to have different entity sets (e.g. Cats and Dogs) being handled by the same controller (e.g. AnimalsController)?</p><p>Basically I need the ability to declare two different routes (/odata/cats and /odata/dogs) that will reach the same controller.</p><p>Once in the controller I will need a way to retrieve the route context to decide if the method willl return cats or dogs.</p><p></p><p>Can anyone point me to the right direction to achieve this result?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/vduret.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by MikeWasson</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Wed, 20 Feb 2013 18:35:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018475</guid><description><![CDATA[ <p>softer: This tutorial targets the RTM of the ASP.NET and Web Tools 2012.2 Update, which is available now. Sorry for the confusion! btw I&#39;ve added a note about requirements.</p><p></p><p>vduret: Not out of the box, but see <a rel="nofollow" href="http://stackoverflow.com/questions/14958851/how-to-dispatch-two-different-odata-routes-to-the-same-entitysetcontrollertenti" target="_blank">stackoverflow.com/</a> </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/MikeWasson.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vduret</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Thu, 21 Feb 2013 07:51:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018483</guid><description><![CDATA[ <p>Mike: Thank you for your answer. However when I try to run your tutorial I get an exception &quot;the-controller-for-path-was-not-found-or-does-not-implement-icontroller&quot; when trying to reach the odata endpoint with Fiddler.</p><p>Note that the default api endpoint created by the Web APi Template is working fine.</p><p>I have also checked the RTM of the ASP.NET and Web Tools 2012.2 Update in installed.</p><p>Any idea?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/vduret.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by MikeWasson</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Fri, 22 Feb 2013 13:49:52 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018499</guid><description><![CDATA[ <p>If the exception says &quot;or does not implement IController&quot;, I think that means the request URI is matching an MVC route, which means the URI did not match any Web API routes (unless you moved the MVC routes to be first).</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/MikeWasson.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by r_keith_hill</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Fri, 01 Mar 2013 11:48:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018552</guid><description><![CDATA[ <p>I&#39;m also getting a 404/HttpException but not for the http://localhost:32275/odata url (that works fine).  I&#39;m getting it for my table URL http://localhost:32275/odata/downloadentries.  This corresponds to an EF DbSet I had already created for use against SQL Express.  </p><p></p><p>BTW I notice the OData ATOM data has a title of &quot;Default&quot;.  How do you change that?</p><p></p><p>I&#39;m doing all of this so folks can use Excel PowerPivot/OData to analyze download data.  This is supported by this drop, right?  :-)</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/r_keith_hill.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hardik88</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Mon, 04 Mar 2013 00:12:38 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018568</guid><description><![CDATA[ <p>Hi, Mike Wasson</p><p></p><p>Greate tutorial from you. It helped me a lot to work with OData. </p><p>But during my web api. I am facing one issue. </p><p></p><p>If my controller has more than one HttpGet action methods than how can i handle those  actions ? </p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/hardik88.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by valentinedwv</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Fri, 08 Mar 2013 14:39:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018629</guid><description><![CDATA[ <p>Partially working.</p><p>http://localhost:15644/odata/Domains</p><p>returns data</p><p></p><p>http://localhost:15644/odata/Domains(1)</p><p>returns an error.</p><p>&quot;value&quot;: &quot;No HTTP resource was found that matches the request URI &#39;http://localhost:15644/odata/Domains(1)/&#39;.&quot;</p><p>},-</p><p>&quot;innererror&quot;: {</p><p>&quot;message&quot;: &quot;No action was found on the controller &#39;Domains&#39; that matches the request.&quot;,</p><p></p><p> public class DomainsController : EntitySetController&lt;Domain, int&gt;</p><p>    {</p><p>        private ResourceMvcContext db = new ResourceMvcContext();</p><p>  </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/valentinedwv.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Salcio</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Fri, 15 Mar 2013 09:25:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018704</guid><description><![CDATA[ <p>Mike,</p><p>your samples do not work with 5.2.0 version of OData ... .</p><p>Anyway, I installed OData via Nuget package and I keep getting 404 error.</p><p>Any ideas?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Salcio.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Salcio</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Fri, 15 Mar 2013 09:43:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018705</guid><description><![CDATA[ <p>Following my last post ...</p><p>If I register by calling config.EnableQuerySupport() everything works fine (after adding [Querable] attribute).</p><p>But registering route using this code:</p><p>    ODataModelBuilder modelBuilder = new ODataConventionModelBuilder();</p><p>     modelBuilder.EntitySet&lt;Product&gt;(&quot;Products&quot;);</p><p>     Microsoft.Data.Edm.IEdmModel model = modelBuilder.GetEdmModel();</p><p>     config.Routes.MapODataRoute(&quot;ODataRoute&quot;, &quot;odata&quot;, model);</p><p>gives me 404.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Salcio.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by carlo marchesoni</title><link>http://asp.net/web-api/overview/odata-support-in-aspnet-web-api/getting-started-with-odata-in-web-api/create-a-read-only-odata-endpoint</link><pubDate>Tue, 26 Mar 2013 02:41:26 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018778</guid><description><![CDATA[ <p>Thank you Mike for writing this, it really helps.</p><p>Two doubts (I am using Excel 2013 to consume odata):</p><p>a) Using filtering does not work:</p><p>If I connect to http://localhost:port/odata everything work fine. But http:.../Products?$filter=Name eq &#39;Hat&#39; does not</p><p>(using <a rel="nofollow" href="http://odata.netflix.com/Catalog/Titles?" target="_blank">odata.netflix.com/</a>$filter=ReleaseYear eq 1989 works)</p><p>b) secure odata: using forms authentication or something else ? (where can I find tutorials/samples ?)</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/carlo%20marchesoni.jpg?forceidenticon=false&amp;dt=635051213400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>