Click here to Skip to main content
11,802,442 members (71,299 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB WPF VB.NET wpftoolkit

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=, 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= ... is not mark as serializable"

A few notes:
1.I'm working with vs2008,, 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=, 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=, 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?

Posted 21-Apr-13 2:26am
Edited 21-Apr-13 2:28am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 KrunalRohit 366
1 OriginalGriff 365
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CPallini 230
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 21 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100