Problems with C/ODBC or N/ODBC, ASP, and .NET

stuarth
Member Posts: 16
Hi,
I have a problem with Navision ’s ODBC, ASP, and .NET
I have created a system DSN using c/front 3.01 connecting to a 3.01 server and also tried the N/ODBC DSN Connecting to a Navision 4 server.
This is the script I used:
dim ADOconn, ADOrs, sqlstr
sqlstr="Select * From Country"
set ADOconn = Server.CreateObject("ADODB.Connection")
ADOconn.Open "NavDSN"
set ADOrs = ADOconn.execute(sqlstr)
if ADOrs.BOF and ADOrs.EOF then ' Query didn't return any records.
Response.Write("No Records.")
else
ADOrs.MoveFirst
Do While Not ADOrs.EOF
Response.Write((ADOrs("Code")) & " " _
& (ADOrs("Name")) & "<br>")
ADOrs.MoveNext
Loop
Response.Write("<p>End of data.")
end if
ADOrs.close
set ADOrs = nothing
This script works fine on a XP professional machine running IIS 5.1 with or without the .NET platform installed (only N/ODBC using Navision server 4.0)
However on Windows 2003 server running IIS 6.0, the script works, but as soon as I install the .NET platform…the script returns no data and times out
The reason for installing the .net platform is so I can create a VB.NET server service on that same server, but I still want to use my old ASP script if possible.
Why would it not work on Server 2003 running IIS 6.0.?
I have heard there are issues Navision ODBC utilizing .NET and “Microsoft OLE DB Provider for ODBC Drivers”…. Could this be the problem?
Somebody help….please!
](*,) ](*,) ](*,) ](*,) ](*,)
I have a problem with Navision ’s ODBC, ASP, and .NET
I have created a system DSN using c/front 3.01 connecting to a 3.01 server and also tried the N/ODBC DSN Connecting to a Navision 4 server.
This is the script I used:
dim ADOconn, ADOrs, sqlstr
sqlstr="Select * From Country"
set ADOconn = Server.CreateObject("ADODB.Connection")
ADOconn.Open "NavDSN"
set ADOrs = ADOconn.execute(sqlstr)
if ADOrs.BOF and ADOrs.EOF then ' Query didn't return any records.
Response.Write("No Records.")
else
ADOrs.MoveFirst
Do While Not ADOrs.EOF
Response.Write((ADOrs("Code")) & " " _
& (ADOrs("Name")) & "<br>")
ADOrs.MoveNext
Loop
Response.Write("<p>End of data.")
end if
ADOrs.close
set ADOrs = nothing
This script works fine on a XP professional machine running IIS 5.1 with or without the .NET platform installed (only N/ODBC using Navision server 4.0)
However on Windows 2003 server running IIS 6.0, the script works, but as soon as I install the .NET platform…the script returns no data and times out
The reason for installing the .net platform is so I can create a VB.NET server service on that same server, but I still want to use my old ASP script if possible.
Why would it not work on Server 2003 running IIS 6.0.?
I have heard there are issues Navision ODBC utilizing .NET and “Microsoft OLE DB Provider for ODBC Drivers”…. Could this be the problem?
Somebody help….please!
](*,) ](*,) ](*,) ](*,) ](*,)
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions