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:
ClientBin/SomeAssembly.dll
To:
It looks like the = signs in the query string are screwing it up. Is this a bug or do I need to UrlEncode or something before I use them in the XAML? The complete XAML looks like (after replacement):
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?
Pete
Developer Community Program Manager - XAML, WPF, Silverlight, .NETMF/Gadgeteer
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
No, the root slash isn't the problem. Its a parser error "Semicolon expected" so I'd guess that the ? and & in the URL is the problem..and probably just a bug or feature.
Shawn Wildermuth
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
Right. Probably the ampersand. if you escape it with & that should address the issue, assuming that is the problem.
Pete
Developer Community Program Manager - XAML, WPF, Silverlight, .NETMF/Gadgeteer
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
Developer Community Program Manager - XAML, WPF, Silverlight, .NETMF/Gadgeteer
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
I could but I want avoid that in this case...why? 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). 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.
This use-case works fine in 1.0 just 1.1 is lacking and I suspect they'll handle it in the beta. I've posted this as a bug in that forum...but thanks for all the ideas!
Shawn Wildermuth
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
All good. I had assumed you need to get something working for real. Teaching workarounds for an alpha product is probably of ... limited use [:P]
Pete
Developer Community Program Manager - XAML, WPF, Silverlight, .NETMF/Gadgeteer
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
swildermuth
Star
8438 Points
1547 Posts
More Problems with Client Assembly URI's
Oct 25, 2007 01:41 AM | LINK
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:
To:
It looks like the = signs in the query string are screwing it up. Is this a bug or do I need to UrlEncode or something before I use them in the XAML? The complete XAML looks like (after replacement):
Any ideas?
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
Psychlist1972
Contributor
6802 Points
1079 Posts
Microsoft
Moderator
Re: More Problems with Client Assembly URI's
Oct 25, 2007 11:55 PM | LINK
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?
Pete
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
swildermuth
Star
8438 Points
1547 Posts
Re: More Problems with Client Assembly URI's
Oct 26, 2007 08:10 AM | LINK
They are both in the root, but i'll try and remove the leading / to see if it makes a difference.
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
swildermuth
Star
8438 Points
1547 Posts
Re: More Problems with Client Assembly URI's
Oct 26, 2007 08:19 PM | LINK
No, the root slash isn't the problem. Its a parser error "Semicolon expected" so I'd guess that the ? and & in the URL is the problem..and probably just a bug or feature.
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
Psychlist1972
Contributor
6802 Points
1079 Posts
Microsoft
Moderator
Re: Re: More Problems with Client Assembly URI's
Oct 26, 2007 09:31 PM | LINK
Right. Probably the ampersand. if you escape it with & that should address the issue, assuming that is the problem.
Pete
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
swildermuth
Star
8438 Points
1547 Posts
Re: Re: Re: More Problems with Client Assembly URI's
Oct 26, 2007 09:59 PM | LINK
I think it'll require a change in the runtime, even with the & it fails with a parser error (though a different one).
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
Psychlist1972
Contributor
6802 Points
1079 Posts
Microsoft
Moderator
Re: Re: Re: Re: More Problems with Client Assembly URI's
Oct 26, 2007 10:07 PM | LINK
Can you use a URL rewriter, perhaps?
Pete
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
swildermuth
Star
8438 Points
1547 Posts
Re: Re: Re: Re: Re: More Problems with Client Assembly URI's
Oct 26, 2007 10:14 PM | LINK
I could but I want avoid that in this case...why? 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). 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.
This use-case works fine in 1.0 just 1.1 is lacking and I suspect they'll handle it in the beta. I've posted this as a bug in that forum...but thanks for all the ideas!
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
Psychlist1972
Contributor
6802 Points
1079 Posts
Microsoft
Moderator
Re: Re: Re: Re: Re: Re: More Problems with Client Assembly URI's
Oct 27, 2007 05:28 AM | LINK
All good. I had assumed you need to get something working for real. Teaching workarounds for an alpha product is probably of ... limited use [:P]
Pete
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.