Given combination of Class, Part, and State is not defined by the current visual style

Microsoft SQLServer Management Studio

Hi,



I'm having problems with Microsoft SQLServer Management Studio and skins.



This happens too with other applications made in .Net



I must disable skins for these application if not I start to receive strange
errors like this:



See the end of this message for details on invoking



just-in-time (JIT) debugging instead of this dialog box.







************** Exception Text **************



System.ArgumentException: Given combination of Class, Part, and State is not
defined by the current visual style.



   at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor(String
className, Int32 part, Int32 state)



   at System.Windows.Forms.DataGridViewHeaderCell.GetThemeMargins(Graphics
g)



   at
System.Windows.Forms.DataGridViewColumnHeaderCell.PaintPrivate(Graphics g,
Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex,
DataGridViewElementStates dataGridViewElementState, Object formattedValue,
DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle
advancedBorderStyle, DataGridViewPaintParts paintParts, Boolean paint)



   at
System.Windows.Forms.DataGridViewColumnHeaderCell.GetContentBounds(Graphics
graphics, DataGridViewCellStyle cellStyle, Int32 rowIndex)



   at
System.Windows.Forms.DataGridViewCell.OnCellDataAreaMouseEnterInternal(Int32
rowIndex)



   at
System.Windows.Forms.DataGridViewCell.OnMouseMoveInternal(DataGridViewCellMo
useEventArgs e)



   at
System.Windows.Forms.DataGridView.OnCellMouseMove(DataGridViewCellMouseEvent
Args e)



   at System.Windows.Forms.DataGridView.UpdateMouseEnteredCell(HitTestInfo
hti, MouseEventArgs e)



   at System.Windows.Forms.DataGridView.OnMouseMove(MouseEventArgs e)



   at System.Windows.Forms.Control.WmMouseMove(Message& m)



   at System.Windows.Forms.Control.WndProc(Message& m)



   at System.Windows.Forms.DataGridView.WndProc(Message& m)



   at
Microsoft.VisualStudio.DataTools.UI.QueryResult.DTDataGridView.WndProc(Messa
ge& m)



   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)



   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)



   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)











************** Loaded Assemblies **************



mscorlib



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll



----------------------------------------



AppIDPackage



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Co
mmon7/IDE/AppIDPackage.DLL



----------------------------------------



System



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System
.dll



----------------------------------------



Microsoft.SqlServer.SqlTools.VSIntegration



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Co
mmon7/IDE/Microsoft.SqlServer.SqlTools.VSIntegration.DLL



----------------------------------------



Microsoft.VisualStudio.Shell.Interop



    Assembly Version: 7.1.40304.0



    Win32 Version: 7.0.4054



    CodeBase:
file:///C:/WINDOWS/assembly/GAC/Microsoft.VisualStudio.Shell.Interop/7.1.403
04.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.Interop.dll



----------------------------------------



Microsoft.VisualStudio.OLE.Interop



    Assembly Version: 7.1.40304.0



    Win32 Version: 7.0.4054



    CodeBase:
file:///C:/WINDOWS/assembly/GAC/Microsoft.VisualStudio.OLE.Interop/7.1.40304
.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.OLE.Interop.dll



----------------------------------------



System.Windows.Forms



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561
934e089/System.Windows.Forms.dll



----------------------------------------



System.Drawing



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3
a/System.Drawing.dll



----------------------------------------



Microsoft.SqlServer.SqlTDiagM



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.SqlTDiagM/9.0.242.0
__89845dcd8080cc91/Microsoft.SqlServer.SqlTDiagM.dll



----------------------------------------



Microsoft.DataWarehouse.SQM



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Co
mmon7/IDE/Microsoft.DataWarehouse.SQM.DLL



----------------------------------------



Microsoft.SqlServer.Instapi



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.Instapi/9.0.242.0__
89845dcd8080cc91/Microsoft.SqlServer.Instapi.dll



----------------------------------------



ObjectExplorer



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Co
mmon7/IDE/ObjectExplorer.DLL



----------------------------------------



ConnectionDlg



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Co
mmon7/IDE/ConnectionDlg.DLL



----------------------------------------



SqlWorkbench.Interfaces



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Co
mmon7/IDE/SqlWorkbench.Interfaces.DLL



----------------------------------------



SqlMgmt



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Co
mmon7/IDE/SqlMgmt.DLL



----------------------------------------



Microsoft.SqlServer.RegSvrEnum



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.RegSvrEnum/9.0.242.
0__89845dcd8080cc91/Microsoft.SqlServer.RegSvrEnum.dll



----------------------------------------



EnvDTE



    Assembly Version: 8.0.0.0



    Win32 Version: 8.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC/EnvDTE/8.0.0.0__b03f5f7f11d50a3a/EnvDTE.dll



----------------------------------------



Microsoft.NetEnterpriseServers.ExceptionMessageBox



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.NetEnterpriseServers.Exceptio
nMessageBox/9.0.242.0__89845dcd8080cc91/Microsoft.NetEnterpriseServers.Excep
tionMessageBox.dll



----------------------------------------



System.Data



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/Sys
tem.Data.dll



----------------------------------------



Microsoft.SqlServer.CustomControls



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.CustomControls/9.0.
242.0__89845dcd8080cc91/Microsoft.SqlServer.CustomControls.dll



----------------------------------------



Accessibility



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a
/Accessibility.dll



----------------------------------------



Microsoft.SqlServer.ConnectionInfo



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.ConnectionInfo/9.0.
242.0__89845dcd8080cc91/Microsoft.SqlServer.ConnectionInfo.dll



----------------------------------------



System.Xml



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/Sy
stem.Xml.dll



----------------------------------------



Microsoft.SqlServer.SmoEnum



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.SmoEnum/9.0.242.0__
89845dcd8080cc91/Microsoft.SqlServer.SmoEnum.dll



----------------------------------------



System.Configuration



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f1
1d50a3a/System.Configuration.dll



----------------------------------------



System.Transactions



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934
e089/System.Transactions.dll



----------------------------------------



System.EnterpriseServices



    Assembly Version: 2.0.0.0



    Win32 Version: 2.0.50727.42 (RTM.050727-4200)



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f
7f11d50a3a/System.EnterpriseServices.dll



----------------------------------------



Microsoft.SqlServer.Smo



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.Smo/9.0.242.0__8984
5dcd8080cc91/Microsoft.SqlServer.Smo.dll



----------------------------------------



Microsoft.SqlServer.SqlEnum



    Assembly Version: 9.0.242.0



    Win32 Version: 9.00.1399.00



    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.SqlEnum/9.0.242.0__
89845dcd8080cc91/Microsoft.SqlServer.SqlEnum.dll
2,019 views 0 replies