Migrando y migrando aplicaciones, demos y demás que tengo por aqui en Silverlight Beta2 a la versión final, me he encontrado con problemas en tiempo de ejecución con un error que asusta al principio pero que investigando un poco se encuentra el por qué del mismo. El mensaje de error es: Catastrophic failure (Excepción de HRESULT: 0x8000FFFF (E_UNEXPECTED)), el cual lo podemos ver en la siguiente imagen.
El problema viene dado en la permisividad que nos daban las versiones Beta de Silverlight, a la hora de añadir elementos al diccionario de recursos de un elemento de tipo FrameworkElement. Es decir, el siguiente código fallaría una vez migrado a Silverlight 2.0:
Storyboard Story = new Storyboard();
DoubleAnimation da = new DoubleAnimation();
da.To = -200;
da.Duration = TimeSpan.FromSeconds(20);
Story.Children.Add(da);
LayoutRoot.Resources.Add(null, Story);
Y la solución pasa por dar un valor correcto al parámetro key:
Storyboard Story = new Storyboard();
DoubleAnimation da = new DoubleAnimation();
da.To = -200;
da.Duration = TimeSpan.FromSeconds(speed);
Story.Children.Add(da);
LayoutRoot.Resources.Add("story", Story);
posted on Wednesday, October 22, 2008 4:42 PM
Feedback
10/26/2008 1:56 AM |
math school
10/26/2008 1:57 AM |
beklerim
# re: Silverlight Beta2 to RTM: Catastrophic failure
2/21/2009 9:59 AM |
Danke Schön..
# re: Silverlight Beta2 to RTM: Catastrophic failure
3/21/2009 8:58 PM |
Excellent Site! Thank You..
# re: Silverlight Beta2 to RTM: Catastrophic failure
9/4/2009 10:30 PM |
This is a great article. I’m new to blogging but still learning. Thanks for the great resource.
# re: Silverlight Beta2 to RTM: Catastrophic failure
9/8/2009 7:06 PM |
This is a great article. I’m new to blogging but still learning. Thanks for the great resource.
# re: Silverlight Beta2 to RTM: Catastrophic failure
10/27/2009 9:27 PM |
tang
# re: Silverlight Beta2 to RTM: Catastrophic failure
11/6/2009 8:37 AM |
hii
# re: Silverlight Beta2 to RTM: Catastrophic failure
11/8/2009 4:13 PM |
Thanks for sharing these info with us! I was reading something similar on another website that i was researching. I will be sure to look around more. thanks
11/9/2009 11:43 AM |
Thanks Nice Post
11/9/2009 11:44 AM |
Thanks for the great resource.
# re: Silverlight Beta2 to RTM: Catastrophic failure
11/15/2009 6:21 PM |
How are you
# re: Silverlight Beta2 to RTM: Catastrophic failure
11/16/2009 4:22 AM |
How are you
# re: Silverlight Beta2 to RTM: Catastrophic failure
11/16/2009 5:40 AM |
hii are you
# re: Silverlight Beta2 to RTM: Catastrophic failure
11/21/2009 5:29 PM |
This is a great article. I’m new to blogging but still learning. Thanks for the great resource.
# re: Silverlight Beta2 to RTMs: Catastrophic failure
11/21/2009 5:29 PM |
This is a great article. I’m new to blogging but still learning. Thanks for the great resource..
11/29/2009 7:38 AM |
Thansk
# re: Silverlight Beta2 to RTM: Catastrophic failure
12/10/2009 2:31 AM |
sinemalar
# re: Silverlight Beta2 to RTM: Catastrophic failure
12/22/2009 8:48 AM |
hi how are you all
# re: Silverlight Beta2 to RTM: Catastrophic failure
1/12/2010 6:20 PM |
thanks
# re: Silverlight Beta2 to RTM: Catastrophic failure
1/12/2010 6:21 PM |
thanks
# re: Silverlight Beta2 to RTM: Catastrophic failure
1/12/2010 6:21 PM |
thanks
# re: Silverlight Beta2 to RTM: Catastrophic failure
1/12/2010 6:22 PM |
thanks
# re: Silverlight Beta2 to RTM: Catastrophic failure
1/12/2010 6:22 PM |
thanks
# re: Silverlight Beta2 to RTM: Catastrophic failure
1/18/2010 8:04 AM |
okey
# re: Silverlight Beta2 to RTM: Catastrophic failure
1/20/2010 12:20 PM |
Thanks
# re: Silverlight Beta2 to RTM: Catastrophic failure
2/15/2010 12:01 AM |
Thank you
# re: Silverlight Beta2 to RTM: Catastrophic failure
2/15/2010 12:01 AM |
Thanks Nice Post
# re: Silverlight Beta2 to RTM: Catastrophic failure
2/15/2010 10:36 PM |
We offer the largest collection of polyphonic ringtones, monophonic ringtones, mobile videos, color wallpapers, color screensavers, real sounds.
# re: Silverlight Beta2 to RTM: Catastrophic failure
2/20/2010 2:34 AM |
i think this Code solev the all problim
# re: Silverlight Beta2 to RTM: Catastrophic failure
2/28/2010 4:57 AM |
thank you ...
# re: Silverlight Beta2 to RTM: Catastrophic failure
3/3/2010 2:02 AM |
Thanks.
# re: Silverlight Beta2 to RTM: Catastrophic failure
3/15/2010 2:26 AM |
thanks my friends