Hello
I have a shared network folder located at
"\\matrix\images\"
that holds various images. Now I want to retreive these images into my silverlight application.
But also:
<Image x:Name="imgUser" Source="file://matrix/images/background.jpg" Width="50" Height="50"></Image>
When I view the designer the image is shown within the designer (from the network shared folder, in a silverlight businuess project template). But when trying to display it when the silverlight application is running through Internet Explorer, it shows nothing... If I try some things, changing the "Source"-URI somehow (into @"\\matrix\images\background.jpg") it gives me access is denied to the folder...
The folder is fully shared, I've added all user groups, IUSR, etc. to the folder, so everyone do have access.
How can I get an image from a network shared folder displayed in the Image-control???
I have done this in normal asp.net with C# as code behind, by simply adding a <asp:Image runat="server" ...> tag to an aspx file, and then in the code behind:
string url = @"file://matrix/images/background.jpg";
imgPersonalia.Src = url;
And the above is working (only in Internet Explorer though). But doing the same thing with a silverlight control fails.
Been struggling the whole day, pissing me off, quite frankly. :)
Suggestions?
Answer: 1
http://forums.silverlight.net/t/86317.aspx/1
http://forums.silverlight.net/t/125276.aspx/1
http://stackoverflow.com/questions/1715528/display-images-from-folder-with-silverlightblend
Answer: 2
Try share the image folder by configuring with IIS, access with http:// not file://( they are in different domains i think)
http://msdn.microsoft.com/en-us/library/ms524896%28v=vs.90%29.aspx
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog