Programming with .NET - Generalhttp://forums.silverlight.net//17.aspx/1?Programming+with+NET+GeneralGeneral discussions around authoring Silverlight .NET applications.Mon, 01 Jan 0001 00:00:00 -05001718566http://forums.silverlight.net//p/6052/18566.aspx/1?More+Problems+with+Client+Assembly+URI+sMore Problems with Client Assembly URI's <p>I am attempting to use a WebResource for my Client Assemblies so I am changing the XAML before it is handed back to the client by replacing:</p> <pre>ClientBin/SomeAssembly.dll</pre> <p>To:</p> <p>It looks like the = signs in the query string are screwing it up.&nbsp; Is this a bug or do I need to UrlEncode or something before I use them in the XAML?&nbsp; The complete XAML looks like (after replacement):</p> <pre>&lt;Canvas<br>&nbsp;xmlns=&quot;<a href="http://schemas.microsoft.com/client/2007">http://schemas.microsoft.com/client/2007</a>&quot;<br>&nbsp;xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2006/xaml">http://schemas.microsoft.com/winfx/2006/xaml</a>&quot;<br>&nbsp;xmlns:RaterSilverlight=&quot;clr-namespace:RaterSilverlight;assembly=/WebResource.axd?d=roJQckDvdezRYJeZjC0LATVipcZoaC8oJi_5h_9JmM_074xmVc0fDFKHc80XadLv0&amp;t=633288583835546880&quot;<br>&nbsp;Width=&quot;138&quot; Height=&quot;23&quot;<br>&nbsp;Background=&quot;#00FFFFFF&quot;<br>&nbsp;x:Class=&quot;RaterSilverlight.Page;assembly=/WebResource.axd?d=roJQckDvdezRYJeZjC0LATVipcZoaC8oJi_5h_9JmM_074xmVc0fDFKHc80XadLv0&amp;t=633288583835546880&quot;<br>&nbsp;x:Name=&quot;Page&quot;<br>&nbsp;&gt;<br>&nbsp;&lt;Path Width=&quot;13.149&quot; Height=&quot;16.499&quot; Fill=&quot;#FFFFFFFF&quot; Stretch=&quot;Fill&quot; Stroke=&quot;#FF000000&quot; Canvas.Left=&quot;2.013&quot; Canvas.Top=&quot;2.642&quot; Data=&quot;M3.7701149,18.641124 L8.3781481,3.1418872 12.148323,17.593978 2.5134936,8.7969087 14.661837,8.7969087 z&quot;/&gt;<br>&lt;/Canvas&gt;</pre> <p>&nbsp;</p> <p>Any ideas?</p> 2007-10-25T01:41:53-04:0018706http://forums.silverlight.net//p/6052/18706.aspx/1?Re+More+Problems+with+Client+Assembly+URI+sRe: More Problems with Client Assembly URI's <p>If I had to guess, I'd say it was the root reference. If you shove your SL app in the root and get rid of the slash in your assembly location, does it work?</p> <p>Pete</p> 2007-10-25T23:55:25-04:0018723http://forums.silverlight.net//p/6052/18723.aspx/1?Re+More+Problems+with+Client+Assembly+URI+sRe: More Problems with Client Assembly URI's <p>They are both in the root, but i'll try and remove the leading / to see if it makes a difference.</p> 2007-10-26T08:10:41-04:0018809http://forums.silverlight.net//p/6052/18809.aspx/1?Re+More+Problems+with+Client+Assembly+URI+sRe: More Problems with Client Assembly URI's <p>No, the root slash isn't the problem.&nbsp; Its a parser error &quot;Semicolon expected&quot; so I'd guess that the ? and&nbsp;&amp; in the URL is the problem..and probably just a bug or feature.</p> 2007-10-26T20:19:26-04:0018820http://forums.silverlight.net//p/6052/18820.aspx/1?Re+Re+More+Problems+with+Client+Assembly+URI+sRe: Re: More Problems with Client Assembly URI's <p>Right. Probably the ampersand. if you escape it with &amp;amp; that should address the issue, assuming that is the problem.</p> <p>Pete</p> 2007-10-26T21:31:55-04:0018822http://forums.silverlight.net//p/6052/18822.aspx/1?Re+Re+Re+More+Problems+with+Client+Assembly+URI+sRe: Re: Re: More Problems with Client Assembly URI's <p>I think it'll require a change in the runtime, even with the &amp;amp; it fails with a parser error (though a different one).</p> 2007-10-26T21:59:39-04:0018823http://forums.silverlight.net//p/6052/18823.aspx/1?Re+Re+Re+Re+More+Problems+with+Client+Assembly+URI+sRe: Re: Re: Re: More Problems with Client Assembly URI's <p>Can you use a URL rewriter, perhaps?</p> <p>Pete</p> 2007-10-26T22:07:48-04:0018824http://forums.silverlight.net//p/6052/18824.aspx/1?Re+Re+Re+Re+Re+More+Problems+with+Client+Assembly+URI+sRe: Re: Re: Re: Re: More Problems with Client Assembly URI's <p>I could but I want avoid that in this case...why?&nbsp; This is for an example of how to do it for my students, so i'd rather wait for 1.1 to support this correctly than hack it together...it'd be interesting to get working but using URL re-writing (or my other issue with it in that I have to hack together the XAML to do it).&nbsp; I'd like a better solution for it from MS as this is going to be a pretty standard use-case (taking a Silverlight control and wrapping it in an AJAX control.&nbsp; </p> <p>&nbsp;This use-case works fine in 1.0 just 1.1 is lacking and I suspect they'll handle it in the beta.&nbsp; I've posted this as a bug in that forum...but thanks for all the ideas!</p> 2007-10-26T22:14:47-04:0018845http://forums.silverlight.net//p/6052/18845.aspx/1?Re+Re+Re+Re+Re+Re+More+Problems+with+Client+Assembly+URI+sRe: Re: Re: Re: Re: Re: More Problems with Client Assembly URI's <p>All good. I had assumed you need to get something working for real. Teaching workarounds for an alpha product is probably of ... limited use&nbsp;[:P]</p> <p>Pete</p> 2007-10-27T05:28:47-04:00