igor-tkachev/bltoolkit — Issue #64: ObjectBinder SharpDeveloper bug
Author: aggel78
Created: 2011-11-07 15:22:45+00:00
State: open

SharpDevelop Version : 4.1.0.7794-beta-b0b8c13c
.NET Version : 4.0.30319.1
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 2
Current culture : Russian (Russia) (ru-RU)
Current UI language : en
Working Set Memory : 118876kb
GC Heap Memory : 33762kb

Unhandled WPF exception
Exception thrown:
System.TypeAccessException: Attempt by security transparent method 'BLToolkit.ComponentModel.Design.TypeEditor.GetEditStyle(System.ComponentModel.ITypeDescriptorContext)' to access security critical type 'System.ComponentModel.Design.Data.DataSourceProviderService' failed.

Assembly 'BLToolkit.4, Version=4.1.5.0, Culture=neutral, PublicKeyToken=b1d3f6ab3aadaca3' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
at BLToolkit.ComponentModel.Design.TypeEditor.GetEditStyle(ITypeDescriptorContext context)
at System.Windows.Forms.PropertyGridInternal.GridEntry.get_Flags()
at System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry.get_NeedsDropDownButton()
at System.Windows.Forms.PropertyGridInternal.PropertyGridView.SelectRow(Int32 row)
at System.Windows.Forms.PropertyGridInternal.PropertyGridView.SelectGridEntry(GridEntry gridEntry, Boolean fPageIn)
at System.Windows.Forms.PropertyGridInternal.PropertyGridView.Refresh(Boolean fullRefresh, Int32 rowStart, Int32 rowEnd)
at System.Windows.Forms.PropertyGridInternal.PropertyGridView.Refresh()
at System.Windows.Forms.PropertyGrid.Refresh(Boolean clearCached)
at System.Windows.Forms.PropertyGrid.set_SelectedObjects(Object[] value)
at ICSharpCode.SharpDevelop.Gui.PropertyPad.UpdateSelectedObjectIfActive(PropertyContainer container)
at ICSharpCode.FormsDesigner.FormsDesignerViewContent.UpdatePropertyPadSelection(ISelectionService selectionService)
at ICSharpCode.FormsDesigner.FormsDesignerViewContent.UpdatePropertyPad()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
18:22:02.816 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: System.Design.resources, Version=4.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a
18:22:02.816 [1] DEBUG - Forms designer: Initializing nested service container of ДатаГрид [System.Windows.Forms.DataGridView] using Reflection
18:22:02.940 [1] DEBUG - Forms designer: Initializing nested service container of objectBinder1 [BLToolkit.ComponentModel.ObjectBinder] using Reflection
18:22:02.972 [1] DEBUG - Forms designer: DesignerLoader loaded, HasSucceeded=True
18:22:02.987 [1] DEBUG - FormsDesigner loaded, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface
18:22:02.987 [1] DEBUG - IDEContainer: Connecting property grid to service provider
18:22:03.096 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: System.resources, Version=4.0.0.0, Culture=en, PublicKeyToken=b77a5c561934e089
18:22:03.096 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: System.resources, Version=4.0.0.0, Culture=en, PublicKeyToken=b77a5c561934e089
18:22:03.128 [1] INFO - Form Designer: END INITIALIZE
18:22:03.128 [1] DEBUG - FormsDesigner view content activated, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface
18:22:03.128 [1] DEBUG - ActiveContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent
18:22:03.159 [1] DEBUG - ParseInformationUpdated C:\Documents and Settings\prog\Мои документы\Dropbox\Унф\Унф\Журналы\Организации.cs new!=null:True
18:22:03.596 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: System.Drawing.resources, Version=4.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a
18:22:03.596 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: System.Drawing.resources, Version=4.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a
18:22:05.032 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.ToolsPad
18:22:06.920 [1] DEBUG - ActiveContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent
18:22:07.076 [1] DEBUG - Initializing MyToolBoxItem: BLToolkit.ComponentModel.ObjectBinder
18:22:07.108 [1] DEBUG - Initializing MyToolBoxItem: BLToolkit.ComponentModel.ObjectBinder
18:22:07.123 [1] WARN - TODO: Add Assembly reference : BLToolkit.4, Version=4.1.5.0, Culture=neutral, PublicKeyToken=b1d3f6ab3aadaca3
18:22:07.154 [1] DEBUG - Forms designer: Initializing nested service container of objectBinder2 [BLToolkit.ComponentModel.ObjectBinder] using Reflection
18:22:07.170 [1] DEBUG - Forms designer: ComponentChanged: objectBinder2 [BLToolkit.ComponentModel.ObjectBinder], Member=TrayLocation, OldValue={X=0,Y=0}, NewValue={X=138,Y=17}; Loading=False; Unloading=False
18:22:07.217 [1] DEBUG - Forms designer: Component added/removed/renamed, Loading=False, Unloading=False
18:22:07.217 [1] DEBUG - SelectedToolUsedHandler
18:22:07.217 [1] DEBUG - Checking for reference to CustomComponent: BLToolkit.ComponentModel.ObjectBinder
18:22:07.310 [1] DEBUG - SelectedToolUsedHandler

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.FormsDesigner.FormsDesignerViewContent
ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\prog\Мои документы\Dropbox\Унф\Унф.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: Унф]