![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #11 (permalink) |
| | RE: XamlParseException -> System.Security exception Haha!! I had to code uphill, both ways!! :-) But, yeah, I'm too old to even appreciate the "beauty" of XML :-) -- TB "maxima" wrote: Quote: > I started from punching cards for ibm 360 :-P > > perhaps we are too old to appreciate the 'real' beauty of wpf ![]() > > "Thomas W. Brown" wrote: > Quote: > > I hear ya! I think we'll see the same trend as all other "ground-breaking" > > development paradigms coming out of Redmond... To my mind, MFC wasn't usable > > until v2.0, .NET was only barely usable at 1.1 and didn't become first class > > until 2.0, Windows itself didn't shine until Win98 (trust me on this, I was > > developing apps for Windows 1.04!!)... |
My System Specs![]() |
| | #12 (permalink) |
| | Re: XamlParseException -> System.Security exception Indeed, it is clean and correct XAML code. I think it is a general problem with your installation of .NET Framework because it runs on my machine. I will write you back if I've found the cause ;-) Best regards, xYrus Thomas W. Brown schrieb: Quote: > Here's the XAML, the code-behind is all default generated by VS2008; I > haven't modified a thing: > > <Window x:Class="Test.Window1" > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > Title="Window1" Height="300" Width="300"> > <Grid> > <Button Margin="98,115,105,125" Name="button1">Hello, World!</Button> > </Grid> > </Window> > > > > "xYrus" wrote: > Quote: >> Could you try to upgrade to .NET 3.5 >> (http://www.microsoft.com/downloads/d...displaylang=en) >> and try again? >> >> Ususally, you don't have to configure security parameters. But note that, >> when you do some local system action (e.g. deleting a file) in browser >> applications, you will get a security error. >> >> You can also get extended information about XAML parsing errory by executing >> the project via "F11" key (debug per line) and press F11 until the exception >> arrives. The highlighted line causes the error. >> >> If nothing helps, you could send me the sample code (e-mail in header) and I >> will check that in a new XPSP3 virtual machine. >> >> "Thomas W. Brown" <thomas_w_brown@xxxxxx> schrieb im >> Newsbeitrag news:3600C6A9-D357-4C83-9912-3381937D6740@xxxxxx Quote: >>> I must be missing something obvious... I just installed VS 2008 on a new >>> laptop (running XP SP3) and am trying the most simple WPF application >>> (dropping a button onto the default grid. When I try to run I get an >>> XamlParseException error (Line 1, position 9) but the inner, inner >>> exception >>> is a security exception: >>> >>> {"Request for the permission of type >>> 'System.Security.Permissions.SecurityPermission, mscorlib, >>> Version=2.0.0.0, >>> Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."} >>> >>> The stack trace is coming up through >>> System.Windows.Markup.BamlRecordReader.CreateInstanceFromType >>> >>> Is there some .NET Security configuration I've missed? The weird thing is >>> that on another machine I have no such problems and the .NET security >>> configuration on both appears to be the same. >>> >>> TIA >>> -- TB >>> |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| system service exception BSOD | General Discussion | |||
| Stop : 0x0000003b System Service Exception | Vista installation & setup | |||
| .net security exception | .NET General | |||
| System Service Exception | Vista General | |||
| Error loading system MshSnapIns exception from C# dll | PowerShell | |||