Imports system Imports System.Data Imports System.Data.Odbc Public Class NavDb Private _cnn As OdbcConnection Private _cnStr As String = "Dsn=NavPortal" Public Sub New() _cnn = New Odbc.OdbcConnection(_cnStr) End Sub Private Sub OpenConnection() Try If Not _cnn.State = ConnectionState.Open Then _cnn.Open() End If Catch ex As OdbcException Throw New Exception(ex.Message) End Try End Sub .... End Class
--------------------------- Microsoft Navision Driver - Error --------------------------- Internal error 182 in module 1.Contact your dealer if you need assistance. Fatal Error: 182 --------------------------- OK ---------------------------
Comments
If you use google, you can see the error no in connection to timeouts... it seems like some component is not responding... may be the privileges under which your code run are not allowing to connect to the server...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Visual Studio 2005 has a built in web server for debugging. This does not work with the Navision ODBC. You have to make a virtual folder in Internet Information Services and run the webapplication from there. Works like a charm now.
Only speed could be better though.
Ran into another problem. It seems I cannot select date fields. Gets me an 'invalid column name' exception.