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

Futures Demo

1 Answer 110 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Cuthahotha
Top achievements
Rank 1
Cuthahotha asked on 25 Sep 2008, 04:35 PM
Getting errors trying to run the futures demo.  The normal RAD WPF Demo works just fine.

Error below

Startup URI: http://demos.telerik.com/wpf/futures/
Application Identity: http://demos.telerik.com/wpf/futures/#Telerik.Examples.WpfControls.xbap, Version=1.0.0.1, Culture=neutral, PublicKeyToken=601b817669f4469c, processorArchitecture=msil/Telerik.Examples.WpfControls.exe, Version=1.0.0.1, Culture=neutral, PublicKeyToken=601b817669f4469c, 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.Examples.WpfControls.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.WrappedInvoke(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.Examples.WpfControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a8b659bf8407afdc
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/smoss1/AppData/Local/Apps/2.0/4PP09LAK.8QR/4KX7CGPM.3AQ/tele..xbap_601b817669f4469c_0001.0000_839984f7e57ad4ec/Telerik.Examples.WpfControls.EXE

-----------------------

PresentationHost.exe v3.0.6920.1453 built by: NetFX - C:\Windows\System32\PresentationHost.exe
ntdll.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\ntdll.dll
kernel32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\kernel32.dll
ADVAPI32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\ADVAPI32.dll
RPCRT4.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\RPCRT4.dll
MSVCR80.dll v8.00.50727.3053 - C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.3053_none_d08d7bba442a9b36\MSVCR80.dll
msvcrt.dll v7.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\msvcrt.dll
USER32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\USER32.dll
GDI32.dll v6.0.6001.18023 (vistasp1_gdr.080221-1537) - C:\Windows\system32\GDI32.dll
ole32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\ole32.dll
mscoree.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\System32\mscoree.dll
SHLWAPI.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\SHLWAPI.dll
urlmon.dll v7.00.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\urlmon.dll
OLEAUT32.dll v6.0.6001.18000 - C:\Windows\system32\OLEAUT32.dll
iertutil.dll v7.00.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\iertutil.dll
SHELL32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\SHELL32.dll
WININET.dll v7.00.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\WININET.dll
Normaliz.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\Normaliz.dll
IMM32.DLL v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\IMM32.DLL
MSCTF.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\MSCTF.dll
LPK.DLL v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\LPK.DLL
USP10.dll v1.0626.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\USP10.dll
comctl32.dll v6.10 (longhorn_rtm.080118-1840) - C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll
uxtheme.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\uxtheme.dll
tiptsf.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll
version.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\version.dll
CLBCatQ.DLL v2001.12.6931.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\CLBCatQ.DLL
rsaenh.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\rsaenh.dll
Secur32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\Secur32.dll
ws2_32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\ws2_32.dll
NSI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\NSI.dll
mswsock.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\mswsock.dll
wshtcpip.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\wshtcpip.dll
RASAPI32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\RASAPI32.dll
rasman.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\rasman.dll
NETAPI32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\NETAPI32.dll
PSAPI.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\PSAPI.DLL
TAPI32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\TAPI32.dll
rtutils.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\rtutils.dll
WINMM.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\WINMM.dll
OLEACC.dll v4.2.5406.0 (longhorn_rtm.080118-1840) - C:\Windows\System32\OLEACC.dll
USERENV.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\USERENV.dll
credssp.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\credssp.dll
CRYPT32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\CRYPT32.dll
MSASN1.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\MSASN1.dll
schannel.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\schannel.dll
msv1_0.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msv1_0.dll
cryptdll.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\cryptdll.dll
sensapi.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\sensapi.dll
NLAapi.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\NLAapi.dll
IPHLPAPI.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\IPHLPAPI.DLL
dhcpcsvc.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\dhcpcsvc.DLL
DNSAPI.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\DNSAPI.dll
WINNSI.DLL v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\WINNSI.DLL
dhcpcsvc6.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\dhcpcsvc6.DLL
rasadhlp.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\rasadhlp.dll
wship6.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\wship6.dll
napinsp.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\napinsp.dll
pnrpnsp.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\pnrpnsp.dll
winrnr.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\winrnr.dll
WLDAP32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\WLDAP32.dll
wshbth.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\wshbth.dll
SETUPAPI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\SETUPAPI.dll
mdnsNSP.dll v1,0,5,11 - C:\Program Files\Bonjour\mdnsNSP.dll
dfshim.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\System32\dfshim.dll
mscorwks.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
PresentationHostDLL.dll v3.0.6920.1453 built by: NetFX - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\PresentationHostDLL.dll
actxprxy.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\actxprxy.dll
SXS.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\SXS.DLL
PresentationHostProxy.dll v3.0.6920.1453 built by: NetFX - C:\Windows\System32\PresentationHostProxy.dll
btmmhook.dll v6.0.1.4900 - C:\Windows\system32\btmmhook.dll
mshtml.dll v7.00.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\mshtml.dll
msls31.dll v3.10.349.0 - C:\Windows\system32\msls31.dll
MLANG.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\MLANG.dll
msimtf.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msimtf.dll
IEFRAME.dll v7.00.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\IEFRAME.dll
scriptcl.dll vVSCORE.13.3.2.128.x86 - C:\Program Files\McAfee\VirusScan Enterprise\scriptcl.dll
JScript.dll v5.7.0.6000 - C:\Windows\system32\JScript.dll
VBScript.dll v5.7.0.6000 - C:\Windows\system32\VBScript.dll
ImgUtil.dll v7.00.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\ImgUtil.dll
pngfilt.dll v7.00.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\pngfilt.dll
mscorlib.ni.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\9adb89fa22fd5b4ce433b5aca7fb1b07\mscorlib.ni.dll
System.ni.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System\aa7926460a336408c8041330ad90929d\System.ni.dll
WindowsBase.ni.dll v3.0.6920.1453 built by: NetFX - C:\Windows\assembly\NativeImages_v2.0.50727_32\WindowsBase\400510870f710fd409ee7fc71b4a69aa\WindowsBase.ni.dll
PresentationCore.ni.dll v3.0.6920.1453 built by: NetFX - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationCore\9895974a8ff48335614f44603ff16a9d\PresentationCore.ni.dll
PresentationFramework.ni.dll v3.0.6920.1453 built by: NetFX - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\2606f840d6783c9c2307965650735ada\PresentationFramework.ni.dll
wpfgfx_v0300.dll v3.0.6920.1453 built by: NetFX - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\wpfgfx_v0300.dll
msimg32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msimg32.dll
PresentationUI.ni.dll v3.0.6920.1453 built by: NetFX - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationUI\4746ed9ba78a700176711accdea55be1\PresentationUI.ni.dll
System.Deployment.ni.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Deployment\df1efcbac5973454c608890f72eb994d\System.Deployment.ni.dll
shfolder.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\shfolder.dll
System.Configuration.ni.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Configuration\cb4cb21d14767292e079366a5d3d76cd\System.Configuration.ni.dll
System.Xml.ni.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml\36f3953f24d4f0b767bf172331ad6f3e\System.Xml.ni.dll
System.Security.ni.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Security\0418eb6dbffe9b46aa4c989153d6a3b5\System.Security.ni.dll
cryptnet.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\cryptnet.dll
NTDSAPI.DLL v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\system32\NTDSAPI.DLL
kerberos.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\kerberos.dll
bcrypt.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\bcrypt.dll
mshtmled.dll v7.00.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\mshtmled.dll
System.Drawing.ni.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Drawing\6978f2e90f13bc720d57fa6895c911e2\System.Drawing.ni.dll
mscorjit.dll v2.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
System.Core.ni.dll v3.5.30729.1 built by: SP - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Core\6c69930d05c557da70144bcc0add7065\System.Core.ni.dll
Telerik.Windows.QuickStart.dll v1.0.0.0 - C:\Users\smoss1\AppData\Local\Apps\2.0\4PP09LAK.8QR\4KX7CGPM.3AQ\tele..xbap_601b817669f4469c_0001.0000_839984f7e57ad4ec\Telerik.Windows.QuickStart.dll
PresentationFramework.Aero.ni.dll v3.0.6920.1453 built by: NetFX - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\9ad65537fa3d6b3c9c01a98586acfa28\PresentationFramework.Aero.ni.dll
WindowsCodecs.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\WindowsCodecs.dll
mscms.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\mscms.dll
WINSPOOL.DRV v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\WINSPOOL.DRV
WindowsCodecsExt.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\WindowsCodecsExt.dll
icm32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\icm32.dll
DWMAPI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\DWMAPI.dll
d3d9.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\System32\d3d9.dll
d3d8thk.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\d3d8thk.dll
igdumd32.dll v7.14.10.1437 - C:\Windows\System32\igdumd32.dll
PenIMC.dll v3.0.6920.1453 built by: NetFX - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\PenIMC.dll
tpcps.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Program Files\Common Files\Microsoft Shared\Ink\tpcps.dll
diasymreader.dll v8.0.50727.3053 (netfxsp.050727-3000) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll

       

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 26 Sep 2008, 05:21 AM
Hello Cuthahotha,

This may be because of stale XBAP cache. Try running "mage -cc" from the Visual Studio 2008 command prompt.  Let us know if that fixes the problem.

Kind regards,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart
Asked by
Cuthahotha
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or