Este artigo tem como objetivo orientar na correção da falha na abertura da rotina de Posição de Férias.
Ao tentar abrir a rotina Posição de Férias ocorre a falha abaixo:
"See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at Wkb.Folha.Ferias.Formulario.UserControls.Filtro.CarregarComboConcessao()
at Wkb.Folha.Ferias.Formulario.UserControls.Filtro.Filtro_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at DevExpress.XtraEditors.XtraUserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at Wkb.Folha.Ferias.Formulario.Principal.CarregarUserControl()
at Wkb.Folha.Ferias.Formulario.Principal.Principal_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& 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: 4.0.0.0
Win32 Version: 4.8.3928.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
GpsFeriasPosicao
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3928.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Wkb.Infra.CrossCutting.IoC
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3928.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Wkb.Infra.CrossCutting.GAP
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3928.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.3928.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Dynamic
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
System.Dynamic.DynamicAssembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.3761.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Wkb.Gap.Essenciais
Assembly Version: 1.1.4.0
Win32 Version: 1.1.4.0
CodeBase: file:///P:/Prosoft.win/scop/componentes.net/v45/carregar/Wkb.Gap.Essenciais/1/Wkb.Gap.Essenciais.dll
----------------------------------------
Wkb.Folha.Domain.Core
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Folha.Domain
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Infra.Data.Btrieve
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Folha.Application
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Infra.Data.Pervasive
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
SimpleInjector
Assembly Version: 4.3.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Core.Data.BtrieveClient
Assembly Version: 1.0.0.2
Win32 Version: 1.7.0.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/Wkb.Core.Data.BtrieveClient/1/Wkb.Core.Data.BtrieveClient.dll
----------------------------------------
Wkb.Core.Data.Pervasive.Contracts
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/Wkb.Core.Data.Pervasive.Contracts/1/Wkb.Core.Data.Pervasive.Contracts.dll
----------------------------------------
Wkb.Infra.CrossCutting.Bus
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Infra.Interop.Smart
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Infra.Interop.ProIntegV7
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Infra.Interop.ProMov
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
Wkb.Infra.Interop.WkbMpFolha
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
FluentValidation
Assembly Version: 8.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.Utils.v16.2
Assembly Version: 16.2.13.0
Win32 Version: 16.2.13.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/DevExpress/16.2.0.0/DevExpress.Utils.v16.2.dll
----------------------------------------
DevExpress.Data.v16.2
Assembly Version: 16.2.13.0
Win32 Version: 16.2.13.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/DevExpress/16.2.0.0/DevExpress.Data.v16.2.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.XtraGrid.v16.2
Assembly Version: 16.2.13.0
Win32 Version: 16.2.13.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/DevExpress/16.2.0.0/DevExpress.XtraGrid.v16.2.dll
----------------------------------------
DevExpress.XtraEditors.v16.2
Assembly Version: 16.2.13.0
Win32 Version: 16.2.13.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/DevExpress/16.2.0.0/DevExpress.XtraEditors.v16.2.DLL
----------------------------------------
System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
DevExpress.XtraGrid.v16.2.resources
Assembly Version: 16.2.0.0
Win32 Version: 16.2.0.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/DevExpress/16.2.0.0/pt-BR/DevExpress.XtraGrid.v16.2.resources.DLL
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Wkb.OnPremises.Toolbox
Assembly Version: 1.0.0.0
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
DevExpress.XtraEditors.v16.2.resources
Assembly Version: 16.2.0.0
Win32 Version: 16.2.0.0
CodeBase: file:///P:/Prosoft.win/SCOP/Componentes.NET/v45/Carregar/DevExpress/16.2.0.0/pt-BR/DevExpress.XtraEditors.v16.2.resources.DLL
----------------------------------------
Wkb.OnPremises.ToolBox.Common
Assembly Version: 5.1.7605.22177
Win32 Version: 5.6.0
CodeBase: file:///P:/Prosoft.win/PCGOLD/GPS/GPSFERIASPOSICAO.EXE
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box."
Resolução
1 - Execute a atualização usando o "Instalador de ServicePack Anteriores (Atualizador)", em seguida o último "Service Pack" e "Patch" disponível.
Em caso de dúvida Consulte os artigos:
I51-Como utilizar o instalador Service Packs Anteriores - versão 05
I17-Atualização do Prosoft (GAP) - Versão 5