[System.MethodAccessException] - {"System.Diagnostics.FilterElement..ctor()"}

Oct 21, 2009 at 3:07 PM

when i run the code without debugging i am getting [System.MethodAccessException] - {"System.Diagnostics.FilterElement..ctor()"}

InnerException is "Type 'MS.Internal.Permissions.UserInitiatedNavigationPermission' in Assembly 'PresentationFramework, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable."

I am getting this exception first time. When executed second time code is running fine without any exception.


I am not getting this exception when i debug the code. It is working fine first time itself when i debug.

Any idea/Pointers ?