<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WCF REST Starter Kit</title><link>http://forums.asp.net/1180.aspx</link><description>Discuss the WCF REST Starter Kit and other WCF REST topics.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: UriTemplate with wildcard not matching file extension?</title><link>http://forums.asp.net/thread/3383698.aspx</link><pubDate>Wed, 02 Sep 2009 17:51:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3383698</guid><dc:creator>tvish</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3383698.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1180&amp;PostID=3383698</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;There is a behavior difference between VS Web Development server and IIS when it comes to matching extensions. Did you see if this works in IIS?&lt;/p&gt;</description></item><item><title>Re: UriTemplate with wildcard not matching file extension?</title><link>http://forums.asp.net/thread/3361443.aspx</link><pubDate>Fri, 21 Aug 2009 16:01:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3361443</guid><dc:creator>BrianKwall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3361443.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1180&amp;PostID=3361443</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sorry for the double post. It said it failed so I posted again.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see&amp;nbsp; a way to delete&amp;nbsp;my own posts so I guess it has to stay :(&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;</description></item><item><title>Re: UriTemplate with wildcard not matching file extension?</title><link>http://forums.asp.net/thread/3361433.aspx</link><pubDate>Fri, 21 Aug 2009 15:55:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3361433</guid><dc:creator>BrianKwall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3361433.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1180&amp;PostID=3361433</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Did you ever get a resolution on this issue? &lt;/p&gt;
&lt;p&gt;I am having the same problem. I would like to include a file extension and once I do the webservice returns the same error you are describing here.&lt;/p&gt;
&lt;p&gt;Here is my code&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;lt;OperationContract()&amp;gt; &amp;lt;WebGet(UriTemplate:= &lt;/font&gt;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#a31515;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#a31515;FONT-SIZE:x-small;"&gt;&amp;quot;vi/{filename}?id={id}&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;)&amp;gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;Function&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; GetSomeKmz(&lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;ByVal&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; filename &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;, &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;ByVal&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; id &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;) &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; System.IO.Stream&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If I do not add a file extension it works fine: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost/Service.svc/vi/myfile?id=123"&gt;http://localhost/Service.svc/vi/myfile?id=123&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As soon as I add a file extension it does not work&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost/Service.svc/vi/myfile.kmz?id=123"&gt;http://localhost/Service.svc/vi/myfile.kmz?id=123&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brian &lt;/p&gt;</description></item><item><title>Re: UriTemplate with wildcard not matching file extension?</title><link>http://forums.asp.net/thread/3361428.aspx</link><pubDate>Fri, 21 Aug 2009 15:54:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3361428</guid><dc:creator>BrianKwall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3361428.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1180&amp;PostID=3361428</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Did you ever get a resolution on this issue? &lt;/p&gt;
&lt;p&gt;I am having the same problem. I would like to include a file extension and once I do the webservice returns the same error you are describing here.&lt;/p&gt;
&lt;p&gt;Here is my code&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;lt;OperationContract()&amp;gt; &amp;lt;WebGet(UriTemplate:= &lt;/font&gt;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#a31515;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#a31515;FONT-SIZE:x-small;"&gt;&amp;quot;vi/{filename}?id={id}&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;)&amp;gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;Function&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; GetSomeKmz(&lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;ByVal&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; filename &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;, &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;ByVal&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; id &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;) &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; System.IO.Stream&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If I do not add a file extension it works fine: &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost/Service.svc/vi/myfile?id=123"&gt;http://localhost/Service.svc/vi/myfile?id=123&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As soon as I add a file extension it does not work&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost/Service.svc/vi/myfile.kmz?id=123"&gt;http://localhost/Service.svc/vi/myfile.kmz?id=123&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brian &lt;/p&gt;</description></item><item><title>UriTemplate with wildcard not matching file extension?</title><link>http://forums.asp.net/thread/3213821.aspx</link><pubDate>Fri, 05 Jun 2009 18:45:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3213821</guid><dc:creator>fwillerup</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3213821.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1180&amp;PostID=3213821</wfw:commentRss><description>&lt;p&gt;I am using WCF REST RC2.&lt;/p&gt;
&lt;p&gt;My service is defined like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; [WebGet(UriTemplate = &lt;span class="st"&gt;&amp;quot;media/{*uri}&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&amp;nbsp;&amp;nbsp; [OperationContract]&lt;br /&gt;&lt;span class="kwd"&gt;&amp;nbsp;&amp;nbsp; public&lt;/span&gt; Stream GetMedia(&lt;span class="kwd"&gt;string&lt;/span&gt; uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;br /&gt;&amp;nbsp;&amp;nbsp; } 
&lt;p&gt;My problem is that this matches &amp;quot;media/foo&amp;quot; and &amp;quot;media/foo/bar&amp;quot; but not &amp;quot;media/foo/bar.png&amp;quot; 
&lt;p&gt;As soon as I put an extension in the URL, it is not matched by the template and I get a &amp;quot;resource cannot be found&amp;quot; error. 
&lt;p&gt;Any ideas?&lt;/p&gt;</description></item></channel></rss>