Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Parameter is not valid exception (Read 5245 times)
matt.s
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Apr 3rd, 2008
Parameter is not valid exception
Feb 14th, 2011 at 11:21am
Print Post  
Hi,

One of our customers is getting an exception when the component is first displayed.

We are using the WinForms component, but it is hosted in a WPF environment.

The exception is below - Only this customer is getting the error.

Any ideas?


System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_FrameDimensionsList()
at System.Drawing.ImageAnimator.CanAnimate(Image image)
at System.Drawing.ImageAnimator.ImageInfo..ctor(Image image)
at System.Drawing.ImageAnimator.Animate(Image image, EventHandler onFrameChangedHandler)
at System.Windows.Forms.ButtonBase.Animate(Boolean animate)
at System.Windows.Forms.ButtonBase.Animate()
at System.Windows.Forms.ButtonBase.set_Image(Image value)
at MindFusion.Scheduling.WinForms.xd60e986cf5aae4b8.x7597b3a7aa259c87()
at MindFusion.Scheduling.WinForms.Calendar.xcbc511030aa1eefb()
at MindFusion.Scheduling.WinForms.Calendar.set_Schedule(Schedule value)
at MindFusion.Scheduling.WinForms.Calendar..ctor(CultureInfo culture)
at MindFusion.Scheduling.WinForms.Calendar..ctor()
at Intersales.FirstContact.ScriptControls.CallBackPicker.CallBackDateCalendar.AddCa
lendar()
at Intersales.FirstContact.ScriptControls.CallBackPicker.CallBackDateCalendar.Windo
wLoaded(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Parameter is not valid exception
Reply #1 - Feb 14th, 2011 at 4:23pm
Print Post  
We will investigate this and get back to you soon.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Parameter is not valid exception
Reply #2 - Feb 15th, 2011 at 7:42am
Print Post  
A new version of the control can be downloaded from here:

https://mindfusion.eu/_pln_trial/MindFusion.Scheduling.5.1.2a.zip

For a licensed version you have to contact my colleagues at support@mindfusion.eu.

The version changes the format of some internal image resources, which was supposedly causing the exception. Please, try it out and let me know if the problem is resolved.

Regards,
Meppy
  
Back to top
 
IP Logged
 
matt.s
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Apr 3rd, 2008
Re: Parameter is not valid exception
Reply #3 - Feb 16th, 2011 at 9:47am
Print Post  
Hi,

Thanks for the quick reply.  Some further investigation has revealed that this problem only occurs when our application is used an App-V environment. 

We are finding that there are some other (unrelated to Mindfusion) strange things happening too.

We are going to attempt to find out why the App-V environment is causing these issues first, before applying any updates.

Thanks
Matt
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint