I have an XAML file that I am loading in IE 7. I get the following:
... The list goes on, but the above gives enough detail I believe. I'm guessing I have a simple setting wrong or something. I thought I got around this before, but I've hit the wall again. Maybe it is simply too late in the day after doinng too muchCode:Startup URI: C:\Users\Brad!\Desktop\RSS.xaml Application Identity: file:///C:/Windows/Microsoft.Net/Framework/v3.0/WPF/XamlViewer/XamlViewer_v0300.xbap#XamlViewer_v0300.application, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil/XamlViewer_v0300.exe, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil, type=win32 System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, 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.DemandUnmanagedCode() at System.Windows.Window..ctor().
Anyone have a suggestion for me to get around this so I can run the XAML file?
Thanks,
Brad!
The XAML file I want to run:
Code:<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="My RSS Reader"> <Window.Resources> <XmlDataProvider x:Key="Blog" Source="http://www.codeguru.com/icom_includes/feeds/codeguru/rss-all.xml" /> </Window.Resources> <DockPanel DataContext="{Binding Source={StaticResource Blog}, XPath=/rss/channel/item}"> <TextBox DockPanel.Dock="Top" Text="{Binding Source={StaticResource Blog}, BindsDirectlyToSource=true, Path=Source, UpdateSourceTrigger=PropertyChanged}" /> <Label DockPanel.Dock="Top" Content="{Binding XPath=/rss/channel/title}" FontSize="14" FontWeight="Bold" /> <Label DockPanel.Dock="Top" Content="{Binding XPath =/rss/channel/description}" /> <ListBox DockPanel.Dock="Left" DisplayMemberPath="title" ItemsSource="{Binding}" IsSynchronizedWithCurrentItem="True" Width="300" /> <Frame Source="{Binding XPath=link}" /> </DockPanel> </Window>




.
Reply With Quote