Netwars

Zjedź na dół

silverlight

[#1]
30.05.2012 21:16

Chcę z poziomu c# dodać obrazek z zewnętrznego URL:

Image img = new Image();
img.SetValue(Grid.RowProperty, row);
img.SetValue(Grid.ColumnProperty, 1);

img.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri("http://localhost:17275/test.png", UriKind.Absolute));

http://localhost:17275/test.png <- jest dostępne z poziomu przeglądarki.

Strona w silverlight wali:

A first chance exception of type 'System.Web.HttpException' occurred in System.Web.dll

Additional information: File does not exist.

wtf ?

[#3]
30.05.2012 21:21

EOT. W cache firefoxa była stara wersja strony z innym kodem.
Wystarczyło clear cache.

może ktoś wie jak wyłączyć cache dla domeny localhost ?

Zaloguj się, żeby odpowiedzieć.