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

WPF Demo not working

13 Answers 154 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 2
Chris asked on 23 Nov 2009, 04:57 AM

I've attempted a few times to launch the demo WPF xbap, and look at the sample DataGrid, except that it throws an exception when clicking on the "GridView" item on the left hand menu.


Version information confirming the site are all in the exception detail below:

Startup URI: http://demos.telerik.com/wpf
Application Identity: http://demos.telerik.com/wpf#Telerik.Windows.Examples.xbap, Version=2009.3.1104.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil/Telerik.Windows.Examples.exe, Version=2009.3.1104.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, 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.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.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
<URI uri="(http|https)://demos\.telerik\.com/.*"/>
</ConnectAccess>
</IPermission>
<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"/>
</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/TestUser/AppData/Local/Apps/2.0/BRRJBZBD.XXV/G1WZXZ72.949/tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b/Telerik.Windows.Examples.EXE

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

PresentationHost.exe v3.0.6920.4000 built by: QFE - C:\Windows\SysWOW64\PresentationHost.exe
ntdll.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\ntdll.dll
kernel32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\kernel32.dll
ADVAPI32.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\ADVAPI32.dll
RPCRT4.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\RPCRT4.dll
Secur32.dll v6.0.6002.18051 (vistasp2_gdr.090615-0258) - C:\Windows\syswow64\Secur32.dll
MSVCR80.dll v8.00.50727.4016 - C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_none_d0893820442e7fe4\MSVCR80.dll
msvcrt.dll v7.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\msvcrt.dll
USER32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\USER32.dll
GDI32.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\GDI32.dll
ole32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\ole32.dll
mscoree.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\SysWOW64\mscoree.dll
SHLWAPI.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\SHLWAPI.dll
urlmon.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\syswow64\urlmon.dll
OLEAUT32.dll v6.0.6002.18005 - C:\Windows\syswow64\OLEAUT32.dll
iertutil.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\syswow64\iertutil.dll
SHELL32.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\SHELL32.dll
WININET.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\syswow64\WININET.dll
Normaliz.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\Normaliz.dll
IMM32.DLL v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\system32\IMM32.DLL
MSCTF.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\MSCTF.dll
LPK.DLL v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\LPK.DLL
USP10.dll v1.0626.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\syswow64\USP10.dll
comctl32.dll v6.10 (longhorn_rtm.080118-1840) - C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18005_none_5cb72f96088b0de0\comctl32.dll
uxtheme.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\uxtheme.dll
CLBCatQ.DLL v2001.12.6931.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\CLBCatQ.DLL
rsaenh.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\rsaenh.dll
NTMARTA.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\NTMARTA.DLL
WLDAP32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\WLDAP32.dll
WS2_32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\WS2_32.dll
NSI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\NSI.dll
PSAPI.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\syswow64\PSAPI.DLL
SAMLIB.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\SAMLIB.dll
VERSION.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\VERSION.dll
RASAPI32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\RASAPI32.dll
rasman.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\rasman.dll
NETAPI32.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\NETAPI32.dll
TAPI32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\TAPI32.dll
rtutils.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\rtutils.dll
WINMM.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\WINMM.dll
OLEACC.dll v7.0.6002.18155 (vistasp2_gdr_win7ip_uia(wmbla).091008-1406) - C:\Windows\SysWOW64\OLEACC.dll
USERENV.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\USERENV.dll
CRYPT32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\CRYPT32.dll
MSASN1.dll v6.0.6002.18106 (vistasp2_gdr.090903-2340) - C:\Windows\SysWOW64\MSASN1.dll
credssp.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\credssp.dll
schannel.dll v6.0.6002.18051 (vistasp2_gdr.090615-0258) - C:\Windows\SysWOW64\schannel.dll
sensapi.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\sensapi.dll
AEPLSP.DLL v5.1 - C:\Windows\SysWOW64\AEPLSP.DLL
mswsock.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\mswsock.dll
AEPNSP.DLL v5.1 - C:\Windows\SysWOW64\AEPNSP.DLL
wshtcpip.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\wshtcpip.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\SysWOW64\IPHLPAPI.DLL
dhcpcsvc.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\dhcpcsvc.DLL
DNSAPI.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\DNSAPI.dll
WINNSI.DLL v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\WINNSI.DLL
dhcpcsvc6.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\dhcpcsvc6.DLL
rasadhlp.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\rasadhlp.dll
jsproxy.dll v8.00.6001.18828 (longhorn_ie8_gdr.090826-1700) - C:\Windows\system32\jsproxy.dll
jscript.dll v5.8.6001.18702 - C:\Windows\SysWOW64\jscript.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.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\System32\winrnr.dll
wship6.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\System32\wship6.dll
security.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\security.dll
msv1_0.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\msv1_0.DLL
cryptdll.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\cryptdll.dll
dfshim.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\SysWOW64\dfshim.dll
mscorwks.dll v2.0.50727.4200 (NetFxQFE.050727-4200) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
PresentationHostDLL.dll v3.0.6920.4000 built by: QFE - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\PresentationHostDLL.dll
actxprxy.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\actxprxy.dll
SXS.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\SXS.DLL
PresentationHostProxy.dll v3.0.6920.4000 built by: QFE - C:\Windows\SysWOW64\PresentationHostProxy.dll
mscorlib.ni.dll v2.0.50727.4200 (NetFxQFE.050727-4200) - C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\894183c0c47bd4772fbfad4c1a7e3b71\mscorlib.ni.dll
System.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System\13cce38e8de5fd54853390e4e98abd0e\System.ni.dll
WindowsBase.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\WindowsBase\c681da7e1c7b648cb456f2d90e7c50fe\WindowsBase.ni.dll
PresentationCore.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationCore\bfbe98e8737c97d8c938275ceca2b1d8\PresentationCore.ni.dll
PresentationFramework.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\394fd96b27f367e6ffb13bc8c35fdcb2\PresentationFramework.ni.dll
wpfgfx_v0300.dll v3.0.6920.4000 built by: QFE - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\wpfgfx_v0300.dll
PresentationUI.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationUI\52d83973b6c5886042800865d5321ef9\PresentationUI.ni.dll
System.Deployment.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Deployment\4edeee9bfffbaea5bc43ebdac1db3580\System.Deployment.ni.dll
shfolder.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\shfolder.dll
mshtml.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\mshtml.dll
msls31.dll v3.10.349.0 - C:\Windows\SysWOW64\msls31.dll
System.Configuration.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Configuration\78aac991cacbc9665c628f5466cec9c1\System.Configuration.ni.dll
System.Xml.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml\99e7927ccb9099e607035349814d4cf6\System.Xml.ni.dll
MLANG.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\MLANG.dll
pdm.dll v9.0.30729.1 built by: SP - c:\Program Files (x86)\Common Files\Microsoft Shared\VS7Debug\pdm.dll
msdbg2.dll v9.0.30729.1 built by: SP - c:\Program Files (x86)\Common Files\Microsoft Shared\VS7Debug\msdbg2.dll
msimtf.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msimtf.dll
Microsoft.JScript.ni.dll v8.0.50727.4016 - C:\Windows\assembly\NativeImages_v2.0.50727_32\Microsoft.JScript\a385166106bab1601126773d27135895\Microsoft.JScript.ni.dll
IEFRAME.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\IEFRAME.dll
ImgUtil.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\ImgUtil.dll
pngfilt.dll v8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339) - C:\Windows\SysWOW64\pngfilt.dll
Microsoft.Vsa.ni.dll v8.0.50727.4016 - C:\Windows\assembly\NativeImages_v2.0.50727_32\Microsoft.Vsa\e69555c56ddd01d1e809c1cf9e5cbf93\Microsoft.Vsa.ni.dll
msimg32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msimg32.dll
mscorjit.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
System.Security.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Security\3bf0444969d6c9bf5e3106c9aa59c1d0\System.Security.ni.dll
cryptnet.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\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\SysWOW64\Kerberos.DLL
bcrypt.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\bcrypt.dll
System.Drawing.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Drawing\57e722244d3b48cb92b340bc92d7a191\System.Drawing.ni.dll
Telerik.Windows.QuickStart.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.QuickStart.dll
System.Core.ni.dll v3.5.30729.1 built by: SP - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Core\1b0d3c0a99c5a1331f07cea904c1c468\System.Core.ni.dll
PresentationFramework.Aero.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\0fa8eb806fadfff925850522a53c3c18\PresentationFramework.Aero.ni.dll
DWMAPI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\DWMAPI.dll
d3d9.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\d3d9.dll
d3d8thk.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\d3d8thk.dll
nvd3dum.dll v8.16.11.9062 - C:\Windows\SysWOW64\nvd3dum.dll
Telerik.Windows.Controls.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.dll
Telerik.Windows.Controls.Input.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.Input.dll
WindowsCodecs.dll v7.0.6002.18107 (vistasp2_gdr_win7ip_dgt(wmbla).090924-1550) - C:\Windows\SysWOW64\WindowsCodecs.dll
Telerik.Windows.Controls.Navigation.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.Navigation.dll
UIAutomationTypes.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\UIAutomationTypes\4609787a9b076765ecb68581a25df450\UIAutomationTypes.ni.dll
System.Xml.Linq.ni.dll v3.5.30729.1 built by: SP - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml.Linq\13c287df8c169b8c70154c98afe1dc8a\System.Xml.Linq.ni.dll
Telerik.Windows.Data.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Data.dll
PresentationNative_v0300.dll v3.0.6920.4000 built by: QFE - C:\Windows\SysWOW64\PresentationNative_v0300.dll
UIAutomationProvider.ni.dll v3.0.6920.4000 built by: QFE - C:\Windows\assembly\NativeImages_v2.0.50727_32\UIAutomationProvider\71446066f8f87652fa7303395df566cc\UIAutomationProvider.ni.dll
powrprof.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\powrprof.dll
SETUPAPI.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\SETUPAPI.dll
nvapi.dll v8.16.11.9062 - C:\Windows\SysWOW64\nvapi.dll
WINTRUST.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\WINTRUST.dll
imagehlp.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\syswow64\imagehlp.dll
msctfui.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\system32\msctfui.dll
Telerik.Windows.Controls.GridView.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.GridView.dll
System.Data.Linq.ni.dll v3.5.30729.1 - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Data.Linq\02a00968e6c47ed3faf0a0934e2b1a1a\System.Data.Linq.ni.dll
System.Data.ni.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Data\74114632794c536c35d28a5c60f694ab\System.Data.ni.dll
System.Data.dll v2.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll
Telerik.Windows.Controls.Charting.dll v2009.3.1104.35 - C:\Users\TestUser\AppData\Local\Apps\2.0\BRRJBZBD.XXV\G1WZXZ72.949\tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b\Telerik.Windows.Controls.Charting.dll
wdmaud.drv v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\wdmaud.drv
ksuser.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\ksuser.dll
MMDevAPI.DLL v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\MMDevAPI.DLL
AVRT.dll v6.0.6001.18000 (longhorn_rtm.080118-1840) - C:\Windows\SysWOW64\AVRT.dll
AUDIOSES.DLL v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\AUDIOSES.DLL
audioeng.dll v6.0.6002.18005 (lh_sp2rtm.090410-1830) - C:\Windows\SysWOW64\audioeng.dll
msacm32.drv v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\msacm32.drv
MSACM32.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\MSACM32.dll
midimap.dll v6.0.6000.16386 (vista_rtm.061101-2205) - C:\Windows\SysWOW64\midimap.dll
diasymreader.dll v8.0.50727.4016 (NetFxQFE.050727-4000) - C:\Windows\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll

       

13 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Nov 2009, 07:17 AM
Hello Chris,

Please try to clear your XBAP cache and let me know about the result. You can do this using mage -cc command in Visual Studio command prompt.

All the best,
Vlad
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
Chris
Top achievements
Rank 2
answered on 24 Nov 2009, 09:47 PM
I've cleared the cache, and can confirm downloading the xbap again, and get the same exception when trying to view the GridView.
This PC is running Windows Vista 64.  + .NET 3.5 SP1.

I've tried another running Windows XP Professional. + .NET 3.5 SP1, which has not previously ran the Telerik demos or controls.
I still get a similar exception....



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:/Documents and Settings/MyUser/Local Settings/Apps/2.0/6LZ8NORB.9GD/T1WM96VD.XK2/tele..xbap_06e954e71cc7b2f5_07d9.0003_d6f1d4d20190d78b/Telerik.Windows.Examples.EXE

 

0
Vlad
Telerik team
answered on 30 Nov 2009, 12:45 PM
Hi Chris,

We've tried our demos using both configurations however didn't get any exceptions - can you run any XBAP application on these machines at your end?

Sincerely yours,
Vlad
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
Chris
Top achievements
Rank 2
answered on 01 Dec 2009, 01:10 AM
We have now tested your demo XBAP ( http://demos.telerik.com/wpf/ ) on half a dozen machines of varying spec, OS (Windows 7) and base .NET installs, all with the same result.
1. The xbap downloads.
2. The xbap runs.
3. The initial screen appears "Highlights of RadControls for WPF"
4. Choose any control sample on the left hand menu, and it crashes immediately thereafter.

All our machines are using the latest Microsoft service packs and security updates, and IE 8 with default security settings.
Apart from testing inside the firewall of our office, I've testing on my home PC with no difference.

We have had no problem running XBAPs in the past, including ones we have written ourselves.  I have just tested a competitors xbap demo for instance, and it works without any issues.

Is there some sort of site permission I must apply, or security level?  From what I understand of the error, your xbap is requesting Full Trust for some type of operation, which the standard Browser settings cannot grant.

Regards,
Chris.
0
Kaloyan
Telerik team
answered on 04 Dec 2009, 09:09 AM
Hi Chris,

This is very strange problem indeed. Can you try adding the Telerik demo site as a trusted site in your IE browser. To do that, go to internet options, navigate to security tab and find the trusted site where to add our xbap demo site.

Regards,
Kaloyan
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
Chris
Top achievements
Rank 2
answered on 10 Dec 2009, 05:01 AM
Hi Kaloyan.

I've set the Demo site as Trusted.
"Trusted Sites | Protected Mode: Off"  shows in the status bar at the bottom of Internet explorer.
I've also cleared out the cache, and IE has downloaded the xbap again, with the same results.
System.Security.SecurityException.

I've done a search around, and noticed a few other users already on the forums with the exact same issue, so it's not isolated.

http://www.telerik.com/community/forums/wpf/general-discussions/wpf-demo-crashes-while-browsing-around.aspx


Regards,
Chris.
0
Kaloyan
Telerik team
answered on 16 Dec 2009, 12:01 PM
Hello Chris,

Please accept our apologies again. We are currently investigating the problem. Can you tell us if this exception appears for all of the examples or just when opening the RadGrid demo app.

Sincerely yours,
Kaloyan
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
Chris
Top achievements
Rank 2
answered on 17 Dec 2009, 12:16 AM

Hi Kaloyan.

I have tested again with the latest demo release (version number listed below), and all control examples appear to cause the exception, including the "Telerik Web Mail", "Paint Application", and "Sales Report".
The "Sales Dashboard" which opens into a new window, causes a different exception related to Proxy Authentication on a HttpChannelAsyncRequest.  This I do know is related to the security on our office Proxy server, but am not at home at the moment to test this in the same manner as the WPF demo.

Startup URI: http://demos.telerik.com/wpf/
Application Identity: http://demos.telerik.com/wpf/#Telerik.Windows.Examples.xbap, Version=2009.3.1208.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil/Telerik.Windows.Examples.exe, Version=2009.3.1208.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, 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.
 

Regards,
Chris.

0
Kaloyan
Telerik team
answered on 18 Dec 2009, 12:22 PM
Hi Chris,

Can you run the examples when logged as an Administrator?

All the best,
Kaloyan
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
Chris
Top achievements
Rank 2
answered on 20 Dec 2009, 09:56 PM
Hi Kaloyan.

All testing was carried out with accounts with full local administrator access on the computer.

Regards,
Chyris.
0
Kaloyan
Telerik team
answered on 28 Dec 2009, 12:18 PM
Hello Chris,

Please accept our apologies. As a last solution we can schedule an online meeting with you for the next week. This way we can check what the exact issue causing this problem on your site is.  What about 4th of January?

Greetings,
Kaloyan
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
Chris
Top achievements
Rank 2
answered on 03 Jan 2010, 11:54 PM
If your WPF XBAP application (http://demos.telerik.com/wpf/) is a full trust application, then I will propbably need to install a certificate.

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

Can you confirm that it requires Full Trust?

Regards,
Chris.
0
Kaloyan
Telerik team
answered on 04 Jan 2010, 03:02 PM
Hi Chris,

Our online XBAP application is a partial trusted application. That means that you do not need to have the same cert. as the xbap demo.

Kind regards,
Kaloyan
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.
Tags
GridView
Asked by
Chris
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Chris
Top achievements
Rank 2
Kaloyan
Telerik team
Share this question
or