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

XamlParseException because of denied access to tmp-file

1 Answer 74 Views
This is a migrated thread and some comments may be shown as answers.
Tim Herrmann
Top achievements
Rank 1
Tim Herrmann asked on 15 Oct 2010, 04:25 PM

i have some unsteady and non-reproducible XamlParseExceptions in the context of telerik RadGridView. These exceptions are caused by a denied access to  tmp-files in the users temp-dir (eg: "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp").
The files content is binary (maybe some BAML?).  The user is logged in as a normal user (not as administrator).
We are developing a desktop application using the RadGridView for WPF (2009.2) with .NET3.5 and Windows 7.

System.Windows.Markup.XamlParseException: Die in der Assembly "Telerik.Windows.Controls.GridView, Version=2009.2.813.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" definierte Instanz von "FrozenColumnsSplitter" kann nicht erstellt werden. Ein Aufrufziel hat einen Ausnahmefehler verursacht.  Fehler in Objekt "PART_FrozenGridViewCellsPanel" in Markupdatei "Telerik.Windows.Controls.GridView;component/themes/office/black/DataCellsPresenter.xaml". ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp" wurde verweigert.
   bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bei System.IO.File.Delete(String path)
   bei System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
   bei System.Windows.Input.Cursor..ctor(Stream cursorStream)
   bei Telerik.Windows.Controls.GridView.GridViewCursors.get_RefreezeCursor()
   bei Telerik.Windows.Controls.GridView.FrozenColumnsSplitter..ctor()
   --- Ende der internen Ausnahmestapel├╝berwachung ---
   bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
   bei System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)

Does anyone have any ideas whats happening here and how to avoid it?


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 20 Oct 2010, 12:57 PM
Hello Tim Herrmann,

Does the problem disappear if you run the application with admin privileges? Does the same error appear if you use some other control like TreeView, RadCarousel, etc?

the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Tim Herrmann
Top achievements
Rank 1
Answers by
Telerik team
Share this question