I have a problem (a common one as I figured from searching the net..) -
I have a wpf application (not a web app!) and I added the wpftoolkit to one of my windows
Maybe it's just a coincidence and it has nothing to do with the toolkit, but everything was fine before..
since then, I get 2 errors =
1. Instead of the windows gui, I get an exception of "Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
2. When I click "click here to reload thr designer" I get "type MS internal.permissions.userinitiatednavigationpermission in asssembly presentationframework version=18.104.22.168 ... is not mark as serializable"
A few notes:
1.I'm working with vs2008, vb.net, framework 3.5
2. I added to my application.xaml.vb :
3. I added to my app.manifest:
<defaultAssemblyRequest permissionSetReference="Custom" />
<PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site">
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Assertion, UnmanagedCode, Execution, ControlThread, ControlEvidence, ControlPolicy, SerializationFormatter, ControlDomainPolicy, ControlPrincipal, ControlAppDomain, RemotingConfiguration, Infrastructure, BindingRedirects" />
<IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
All of these things are parts of me trying to solve the problem but nothing help!
Also tried to close and re-open but the exception is still there... #!#
Please- can anyone has an idea how to solve this?