2 Replies - 8347 Views - Last Post: 22 March 2012 - 10:01 AM

#1 shadytyrant  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-March 12

Basic silverlight application not working. Sometimes crashing VS

Posted 21 March 2012 - 09:52 PM

Ok first off when I use VisualStudio2010 and I try to add a TextBlock or other control from the toolbox I get an error like this:

System.InvalidOperationException
Layout measurement override of element 'Microsoft.Windows.Design.Platform.SilverlightViewProducer+SilverlightContentHost' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)



Now when I use a cloud ide and manualy type in a TextBlock I run the application, when it starts I just get a blank page. But if I right click anywhere I get the silverlight menu. I have tried to reinstall VS already. I also tried getting help on the official silverlight website but in 5 days nothing. I realy want to use silverlight with c#. I would hate to switch to java, and applets. Please help, thank you.

Is This A Good Question/Topic? 0
  • +

Replies To: Basic silverlight application not working. Sometimes crashing VS

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,957
  • Joined: 21-March 08

Re: Basic silverlight application not working. Sometimes crashing VS

Posted 22 March 2012 - 05:09 AM

Have you tried reinstalling the Silverlight bits? This isn't normal, so the first thing that comes to mind is a botched install.
Was This Post Helpful? 0
  • +
  • -

#3 shadytyrant  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-March 12

Re: Basic silverlight application not working. Sometimes crashing VS

Posted 22 March 2012 - 10:01 AM

I uninstalled all the silverlight installs I had, 3, 4, and 5. I then installed 5 and same problem. Again I uninstalled and used my VS disk to install version 3 and still the same problem. I am going to see if I can use a different pc to get things running. However the pc I am on is my main development workstation so I would still like to get it running.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1