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


 
 

RE: XamlParseException -> System.Security exception

O...M...G...,

Ok, I finally realized that this laptop was setup to redirect "My Documents"
to a mapped network drive. So, the default location for new projects was on
a network share instead of the local hard drive. I was essentially getting
the same error one gets when trying to run a .NET Forms application from a
network share, just very much disguised!!!

It will be nice to see the next round of improvements in the IDE for working
with XAML and WPF projects!!!!!!!

-- TB

"Thomas W. Brown" wrote:
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 SpecsSystem Spec