You are on page 1of 4

Consulte el final de este mensaje para obtener ms detalles sobre cmo invocar a la

depuracin
Just-In-Time (JIT) en lugar de a este cuadro de dilogo.
************** Texto de la excepcin **************
System.ArgumentOutOfRangeException: El ndice y la longitud deben hacer referencia a
una ubicacin en la cadena.
Nombre del parmetro: length
en System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean
fAlwaysCopy)
en System.String.Substring(Int32 startIndex, Int32 length)
en AccesToExcelWin32.Form1.Button1_Click(Object sender, EventArgs e)
en System.Windows.Forms.Control.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button,
Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ButtonBase.WndProc(Message& m)
en System.Windows.Forms.Button.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
************** Ensamblados cargados **************
mscorlib
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1008 (RTMGDR.030319-1000)
Cdigo base: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
---------------------------------------AccesToExcelWin32
Versin del ensamblado: 1.0.0.0
Versin Win32: 1.0.0.0
Cdigo base: file:///C:/Documents%20and%20Settings/pfl_automati/Escritorio/ERROR
%20DE%20BASE%20DE%20DATOS/AccesToExcelWin32.exe
---------------------------------------Microsoft.VisualBasic
Versin del ensamblado: 10.0.0.0
Versin Win32: 10.0.30319.1 built by: RTMRel
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10
.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
---------------------------------------System
Versin del ensamblado: 4.0.0.0

Versin Win32: 4.0.30319.1001 built by: RTMGDR


Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c5
61934e089/System.dll
---------------------------------------System.Core
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1 built by: RTMRel
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b7
7a5c561934e089/System.Core.dll
---------------------------------------System.Windows.Forms
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1002 built by: RTMGDR
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_
4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
---------------------------------------System.Drawing
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1001 built by: RTMGDR
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0_
_b03f5f7f11d50a3a/System.Drawing.dll
---------------------------------------System.Runtime.Remoting
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1 (RTMRel.030319-0100)
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.
0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
---------------------------------------Microsoft.Office.Interop.Excel
Versin del ensamblado: 11.0.0.0
Versin Win32: 11.0.5530
Cdigo base:
file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Excel/11.0.0.0__71e9bce11
1e9429c/Microsoft.Office.Interop.Excel.dll
---------------------------------------office
Versin del ensamblado: 11.0.0.0
Versin Win32: 11.0.5530
Cdigo base:
file:///C:/WINDOWS/assembly/GAC/office/11.0.0.0__71e9bce111e9429c/office.dll
---------------------------------------System.Data

Versin del ensamblado: 4.0.0.0


Versin Win32: 4.0.30319.1 (RTMRel.030319-0100)
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5
c561934e089/System.Data.dll
---------------------------------------System.Xml
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1015 built by: RTMGDR
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b7
7a5c561934e089/System.Xml.dll
---------------------------------------System.Transactions
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1 (RTMRel.030319-0100)
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0_
_b77a5c561934e089/System.Transactions.dll
---------------------------------------System.EnterpriseServices
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1 (RTMRel.030319-0100)
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.
0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
---------------------------------------System.Configuration
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1015 (RTMGDR.030319-1000)
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0
.0.0__b03f5f7f11d50a3a/System.Configuration.dll
---------------------------------------System.Numerics
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1 built by: RTMRel
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0
__b77a5c561934e089/System.Numerics.dll
---------------------------------------mscorlib.resources
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1 (RTMRel.030319-0100)
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.
0_es_b77a5c561934e089/mscorlib.resources.dll

---------------------------------------System.Windows.Forms.resources
Versin del ensamblado: 4.0.0.0
Versin Win32: 4.0.30319.1 built by: RTMRel
Cdigo base:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resour
ces/v4.0_4.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
---------------------------------------************** Depuracin JIT **************
Para habilitar la depuracin Just In Time (JIT), el archivo de configuracin de esta
aplicacin o equipo (machine.config) debe tener el
valor jitDebugging establecido en la seccin system.windows.forms.
La aplicacin tambin se debe compilar con la depuracin
habilitada
Por ejemplo:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Cuando est habilitada la depuracin JIT, cualquier excepcin no controlada
se enviar al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de dilogo.

You might also like