Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/10/2006, 18:17
Avatar de Frehley
Frehley
 
Fecha de Ingreso: junio-2005
Ubicación: Somewhere between Heaven and Hell
Mensajes: 415
Antigüedad: 18 años, 11 meses
Puntos: 0
The type initializer for 'WindowsApplication1.module1' threw an exception.

Hace 24hs que estoy luchando con este problema. Cada vez que necesito leer una variable o mas especificamente abrir una conección que se encuentra declarada en un modulo me tira este error

Cita:
The type initializer for 'WindowsApplication1.module1' threw an exception.

Codigo:

Modulo:

Imports System
Imports System.Data.OleDb

Public dr As DataRow = dt.Rows(fila)
Public dt As DataTable Public
ordenventas As OleDbDataAdapter
Public dsventas As DataSet
Public conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|\database2003.mdb")

Luego desde cualquier formulario intento abrir la base de datos
Imports System.Data.SqlClient
Imports System
Imports System.Data.OleDb

conn.open

Ahí es cuando tira ese error. Muchas gracias.

Alguien sabe a que se debe?

Muchas gracias!
__________________
diegoz.com.ar

Última edición por Frehley; 24/10/2006 a las 09:21