This is a migrated thread and some comments may be shown as answers.

Unhandled Exception Causing Application Crash

14 Answers 411 Views
GridView
This is a migrated thread and some comments may be shown as answers.
intellitechcorporation
Top achievements
Rank 1
intellitechcorporation asked on 13 Jul 2012, 09:21 PM
Hello,

I am currently using version 2011.3.1220.40 of the GridView control, and I have been receiving this exception at one of our client sites.  Unfortunately, this is something I have not been able to reproduce myself, nor am I getting adequate information about what the user is doing when it occurs.  I'm hoping this is something that someone has possibly seen before, or can identify from the stack trace.  I'm guessing it is something that is corrupt in their environment, and I have only seen this happen on two out of the ten machines they have in use, I'm hoping to be able to get more details about these specific machines soon.

Any help would be greatly appreciated.

=> System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Telerik.Windows.Controls.GridView.FrozenColumnsSplitter' that matches the specified binding constraints threw an exception. ---> System.IO.IOException: The file exists.

 

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.__Error.WinIOError()

   at System.IO.Path.GetTempFileName()

   at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)

   at System.Windows.Input.Cursor..ctor(Stream cursorStream)

   at Telerik.Windows.Controls.GridView.GridViewCursors.get_RefreezeCursor()

   at Telerik.Windows.Controls.GridView.FrozenColumnsSplitter..ctor()

   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)

   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)

   at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)

   at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)

   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args)

   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)

   --- End of inner exception stack trace ---

   at System.Windows.Markup.XamlReader.RewrapException(Exception e, Uri baseUri)

   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)

   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)

   at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)

   at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)

   at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)

   at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)

   at System.Windows.FrameworkElement.ApplyTemplate()

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size constraint)

   at Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride(Size availableSize)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

   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.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)

   at System.Windows.Threading.DispatcherOperation.InvokeImpl()

   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Threading.DispatcherOperation.Invoke()

   at System.Windows.Threading.Dispatcher.ProcessQueue()

   at System.Windows.Threading.Dispatcher.WndProcHook(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)

   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   at System.Windows.Application.RunDispatcher(Object ignore)

   at System.Windows.Application.RunInternal(Window window)

   at System.Windows.Application.Run(Window window)

   at APSSSentinel.App.Main()

14 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 17 Jul 2012, 09:53 AM
Hello Kyle,

The exception is related to the cursor gripper, it seems that the Cursors file cannot be read from the resources. Do you use one of our build in themes or you have made your own custom theme? Do you refer the provided from Telerik binaries or you have modified the code and use binaries you have built? Any additional information in this direction would be helpful. 

All the best,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
intellitechcorporation
Top achievements
Rank 1
answered on 24 Jul 2012, 05:39 PM
Yordanka,

Thank you for the speedy reply, I apologize for not getting back to you sooner.  I am using the standard Telerik themes (Summer and Expression Dark).  I'm still not completely sure what was causing the exception, but clearing out the user's temp folder (c:\users\(username)\AppData\Local\Temp) fixed the issue.  As I said before, this was happening on only a few machines.  FYI, these machines were running Windows Vista.
0
James
Top achievements
Rank 1
answered on 18 Mar 2013, 07:17 PM
I am seeing the exact same error using v2012.3 running in a terminal services session (RDP) hosted on a Windows Server 2003 machine.  The client that is remoting into the server is running Windows XP.  We have the application installed at 4 client sites in the same environment as well as approx. 10 dev machines and 6 test machines and this one is the only one having this issue.  Is there any more information available?

All of the Telerik assemblies we reference are used as provided (i.e., we don't rebuild any of them).
0
Yordanka
Telerik team
answered on 19 Mar 2013, 12:55 PM
Hi James,

The problem should be fixed with our latest official binaries - Q1 2013. Could you give them a try and let us know in case of any problems?
 
Kind regards,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Xavier
Top achievements
Rank 1
answered on 07 Aug 2017, 02:27 PM

Hi,

I am replying on a very old post, not sure if this will be noticed, but we are probably experiencing a very similar issue : 

- Telerik controls for WPF, version 2012.2.903.40

- crash occurs when using the application in an RDP session (thin client)

- error message : "L'invocation du constructeur sur le type 'Telerik.Windows.Controls.GridView.FrozenColumnsSplitter' qui correspond aux contraintes de liaison spécifiées a levé une exception. (Nom de répertoire non valide.)"

Translated : "The invocation of the constructor on type 'Telerik.Windows.Controls.GridView.FrozenColumnsSplitter' that matches the specified binding constraints threw an exception (Invalid folder name)"

My question to Telerik : we no longer have a support contract, since development of that application stopped a few years ago. Is it possible for us to receive the earliest version of the WPF controls library which solves this specific blocking bug ? (Q1 2013?)

Thanks,

Xavier De Donder

Televic Education

0
Yana
Telerik team
answered on 10 Aug 2017, 11:07 AM
Hello Xavier,

Indeed, it seems you've come across the same issue as the one discussed in this thread.

I have forwarded your request to our sales team, so you could talk through the details directly with them.

Regards,
Yana
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Xavier
Top achievements
Rank 1
answered on 10 Aug 2017, 11:19 AM

Thanks for confirming this, Yana!

Actually we just got a message from our customer that they were able to avoid the crashes by reconfiguring the thin client OS images. Probably something related to video driver and/or hardware acceleration. Since this seems to solve the problem for them and no one else reported the issue so far we currently no longer have the need for an upgrade of the used Telerik libraries. If this would change in the future I will get in contact with the Telerik sales team.

Thanks again,

Xavier

Televic Education

0
Xavier
Top achievements
Rank 1
answered on 13 Sep 2018, 07:54 AM

Hi Yana,

one year later this same problem pops up again in a large thin client project. I have been trying to get a reply from the Progress Telerik sales team but my emails remain unanswered. Could you please get in touch with them ?

thanks,

Xavier De Donder

Televic Education

0
Courtney
Telerik team
answered on 13 Sep 2018, 02:16 PM
Hello Xavier,

Thank you for reaching out! I've looked into your account and I see that you have DevCraftComplete Ultimate with support. I highly advise you to call our direct support line, as you will receive support the fastest way by doing so. The number is: 1-866-866-0452. Our technical engineer team will be much better at assisting you with this!

Hope this helps!

Regards,
Courtney
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Nils
Top achievements
Rank 1
answered on 06 Feb 2020, 04:11 PM
Hi,

we are facing a very similar issue to the one stated in the first post in this thread:
- Crashing application on only one known customer machine (Win 7), no other machines seem to be affected
- System.IO.IOException: The file exists.

We are using Telerik UI for WPF in version 2018.2.515 with implicit styles and the Windows8 theme, all unmodified.

In our case however, it occurs when trying to set up the RadDiagram:

[...]
The invocation of the constructor on type 'Telerik.Windows.Controls.RadDiagram' that matches the specified binding constraints threw an exception.
The type initializer for 'Telerik.Windows.Diagrams.Core.DiagramCursors' threw an exception.
The file exists.
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Telerik.Windows.Controls.RadDiagram' that matches the specified binding constraints threw an exception. ---> System.TypeInitializationException: The type initializer for 'Telerik.Windows.Diagrams.Core.DiagramCursors' threw an exception. ---> System.IO.IOException: The file exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
   at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
   at System.Windows.Input.Cursor..ctor(Stream cursorStream, Boolean scaleWithDpi)
   at System.Windows.Input.Cursor..ctor(Stream cursorStream)
   at Telerik.Windows.Diagrams.Core.DiagramCursors..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Windows.Diagrams.Core.DiagramCursors.get_Pointer()
   at Telerik.Windows.Diagrams.Core.PointerTool..ctor()
   at Telerik.Windows.Diagrams.Core.ToolService.AddDefaultTools()
   at Telerik.Windows.Diagrams.Core.ToolService..ctor(IGraphInternal graph, IGraphServiceLocator serviceLocator)
   at Telerik.Windows.Diagrams.Core.ServiceLocator.RegisterDefaultServices()
   at Telerik.Windows.Diagrams.Core.GraphController..ctor(IGraphInternal graph, IContainerGeneratorInternal containerGenerator)
   at Telerik.Windows.Controls.RadDiagram..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
[...]

It appears to be the same bug that was fixed in Q1 2013 for the FrozenColumnSplitter of the RadGridView.

Could you verify this?

BR
Nils
0
Vladimir Stoyanov
Telerik team
answered on 11 Feb 2020, 11:41 AM

Hello Nils,

Thank you for the provided stacktrace. 

We were not able to replicate the same exception on our end. Can you try the suggestion given earlier of clearing the temp folder and let me know, if that helps?

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Nils
Top achievements
Rank 1
answered on 11 Feb 2020, 12:16 PM

Hi Vladimir,

thanks for your answer. Same as for the original poster of this thread, the issue is not reproducible on our end either. It occurs sporadically. Clearing the temp folder did help to resolve the symptom of this issue.

I just wanted to ask if you can check whether this is be the same bug that has been fixed with Q1 2013 for the RadGridView control but not yet for the RadDiagram control and if so, when you are planning to fix it.

BR
Nils

0
Vladimir Stoyanov
Telerik team
answered on 14 Feb 2020, 11:57 AM

Hello Nils,

I am investigating the described scenario, however I will need some more time in order to do so. I will update you on my progress in the beginning of next week.

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Vladimir Stoyanov
Telerik team
answered on 19 Feb 2020, 03:57 PM

Hello Nils,

I am following up to let you know that we have introduced a change in our source code regarding the described scenario. You can give it a try with the following latest internal build, which will be available in the beginning of next week. Feel free to let us know, if you have any feedback. 

On a side note, I have updated your telerik points as a thank you for bringing this to our attention.

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
intellitechcorporation
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
intellitechcorporation
Top achievements
Rank 1
James
Top achievements
Rank 1
Xavier
Top achievements
Rank 1
Yana
Telerik team
Courtney
Telerik team
Nils
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or