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

WPF Demo Crashes while browsing around

9 Answers 205 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Miguel
Top achievements
Rank 1
Miguel asked on 21 Nov 2008, 08:12 AM
Hello, I just installed the demo. It seems to work fine when I click on an item on the tree list but when I click on another item on the tree list, it crashes. It always crashes when I select my second item but the first item loads fine.

Here's a screenshot: http://img291.imageshack.us/img291/7963/crashwi6.jpg

9 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 26 Nov 2008, 12:01 PM
Hi Miguel,

First of all, I apologize for the late reply.

Did you mean that the QSF crashes upon clicking on an item? Can you elaborate a bit more on what you did before the problem appeared? Step-by-step details will be of great help for us to try to reproduce the problem locally.

Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Miguel
Top achievements
Rank 1
answered on 26 Nov 2008, 12:16 PM
When I load the application, I am able to click on a single item and it will load correctly. The moment I select another item from the list, that's when the crash occurs. It happens 100% of the time.
0
Kaloyan
Telerik team
answered on 01 Dec 2008, 04:25 PM
Hello Miguel,

Sorry for the caused inconvenience. After performing some tests at our side we did not reproduce this problem. I would suggest that delete your browser's cache(if you run the sample as a .xbap application), and then download again the installation and run it again. We really have no clues what might be causing the problem as everything is running as expected at our side.

Let us know how this goes.

Regards,

the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tor
Top achievements
Rank 2
answered on 18 Dec 2008, 08:44 AM
Hi,

This happend to me too, and I've sent an email about it, but here is the error message reported in the browser:

Startup URI: http://demos.telerik.com/wpf/
Application Identity: http://demos.telerik.com/wpf/#Telerik.Windows.Examples.xbap, Version=1.0.3.3, Culture=neutral, PublicKeyToken=68aea52899ac9a31, processorArchitecture=msil/Telerik.Windows.Examples.exe, Version=1.0.3.3, Culture=neutral, PublicKeyToken=68aea52899ac9a31, processorArchitecture=msil, type=win32

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at MS.Internal.PresentationFramework.SecurityHelper.DemandUIWindowPermission()
   at System.Windows.Application.Shutdown(Int32 exitCode)
   at Telerik.Windows.Examples.App.App_DispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e)
   at System.Windows.Threading.Dispatcher.CatchException(Exception e)
   at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e)
   at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.UIPermission
The first permission that failed was:
<IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Window="AllWindows"/>

The demand was for:
<IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Window="AllWindows"/>

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission class="System.Security.Permissions.FileDialogPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Access="Open"/>
<IPermission class="System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Allowed="ApplicationIsolationByUser"
UserQuota="512000"/>
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Execution"/>
<IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Window="SafeTopLevelWindows"
Clipboard="OwnClipboard"/>
<IPermission class="System.Drawing.Printing.PrintingPermission, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="SafePrinting"/>
<IPermission class="System.Security.Permissions.MediaPermission, WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
version="1"
Audio="SafeAudio"
Video="SafeVideo"
Image="SafeImage"/>
<IPermission class="System.Security.Permissions.WebBrowserPermission, WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
version="1"
Level="Safe"/>
<IPermission class="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri="(http|https)://demos\.telerik\.com/.*"/>
</ConnectAccess>
</IPermission>
</PermissionSet>

The assembly or AppDomain that failed was:
Telerik.Windows.Examples, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null
The method that caused the failure was:
Void App_DispatcherUnhandledException(System.Object, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs)
The Zone of the assembly that failed was:
MyComputer
The Url of the assembly that failed was:
file:///C:/Users/tfn/AppData/Local/Apps/2.0/V5MYDAC1.4OW/0OGHPGCX.ZRT/tele..xbap_68aea52899ac9a31_0001.0000_7f5a2504a61aa5eb/Telerik.Windows.Examples.EXE

 

Regards,
Tor Thorbergsen

0
Rosi
Telerik team
answered on 18 Dec 2008, 11:34 AM
Hello Tor,

We are sorry to hear that you experience any problems with our controls.

We tried to reproduce the problem, but to no avail. Could you please provide us with more details on how to reproduce the issue? Does the error appear  when you click on a particular example? If so, could you tell us which is the example?

This will help us to understand the problem better and provide you with more specific instructions. Also I suggest you install the examples locally and let us know how this goes.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Arne
Top achievements
Rank 1
answered on 19 Oct 2009, 10:10 AM
Hi,

I'm experiencing the same thing. The xbap seems to load just fine, but when I try to navigate to any of the links I get the same security exception. FYI.


Kind Regards,

Arne Wauters
0
Stefan Dobrev
Telerik team
answered on 22 Oct 2009, 12:54 PM
Hello Arne,

Can you point us to the specific example you have clicked that resulted in this error?

Kind regards,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
yonadav
Top achievements
Rank 1
answered on 02 Nov 2009, 09:34 AM
I had the same problem, an issue with the UIPermission (I'm running on Windows 7).

However, when I ran IE in Administrator mode (bad idea, generally), it worked fine.

Can the fact that the user is not an administrator cause a problem?
0
yagimay
Top achievements
Rank 1
answered on 05 Feb 2010, 07:38 AM

Hello, I meet the same issue as well.

yonadav, I'm not sure if this is a UAC issue in Vista and Windows 7.
I run on Vista with UAC disabled but see the same issue.

My guess is that the Demo XBAP application requires full trust to run.

http://blogs.microsoft.co.il/blogs/maxim/archive/2008/03/05/wpf-xbap-as-full-trust-application.aspx

Telerik team,
Do you think you could test this via internet.

Thanks,
yagimay

Tags
General Discussions
Asked by
Miguel
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Miguel
Top achievements
Rank 1
Kaloyan
Telerik team
Tor
Top achievements
Rank 2
Rosi
Telerik team
Arne
Top achievements
Rank 1
Stefan Dobrev
Telerik team
yonadav
Top achievements
Rank 1
yagimay
Top achievements
Rank 1
Share this question
or