View Single Post
Old 07-29-2008   #1 (permalink)
Thomas W. Brown


 
 

XamlParseException -> System.Security exception

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 SpecsSystem Spec