cfront.ocx, NDBCN, ASP.Net

Axeman
Member Posts: 8
Hi,
My web application connects to a NDBCN server via cfront.ocx. I use the following code:
CF.ConnectServerAndOpenDatabase("NDBCN", serverName, "TCP", databasename, dbCache, True, False, UserID, Pword).
Everything works fine on my machine and one other machine. However when I install the application on any other machine it crashes at CF.ConnectServerAndOpenDatabase. I am able to use the CF.ConnectServerAndOpenDatabase method using VB6 and VB.net on these machines but not ASP.net. What on earth is going on?
Somebody please help me!
My web application connects to a NDBCN server via cfront.ocx. I use the following code:
CF.ConnectServerAndOpenDatabase("NDBCN", serverName, "TCP", databasename, dbCache, True, False, UserID, Pword).
Everything works fine on my machine and one other machine. However when I install the application on any other machine it crashes at CF.ConnectServerAndOpenDatabase. I am able to use the CF.ConnectServerAndOpenDatabase method using VB6 and VB.net on these machines but not ASP.net. What on earth is going on?
Somebody please help me!
Cfront.ocx misery
0
Comments
-
-
That's the trouble! I don't get an error message from cfront even if hideError is set to false. I get an asp error msg:
System.Runtime.InteropServices.COMException (0x80010108): Method '~' of object '~' failed
which as you can see is not very helpful.Cfront.ocx misery0 -
I suppose you did register CFront.ocx.
Can you give us the source code?
What is your development environment?0 -
Yes it's registered. This is the thing: I can access the server and database using VB6 and VB.Net but not ASP.net. The trouble is our application is developed in ASP.Net.
The other thing is it works fine on my machine and one other machine. There seems to be something whithin ASP.net.
Anyway, heres the code:
Public Sub connectUserToDatabase(ByVal sUser As String, ByVal sPw As String)
Dim databasename As String = ConfigurationSettings.AppSettings("NavisionNativeDatabase")
Dim serverName As String = ConfigurationSettings.AppSettings("NavisionNativeServer")
Dim dbCache As Int32 = CLng(ConfigurationSettings.AppSettings("NavisionNativeCache"))
Dim sPath As String = ConfigurationSettings.AppSettings("NavisionNativePath")
CF.SetNavisionPath(sPath)
CF.ConnectServerAndOpenDatabase("NDBCN", serverName, "TCP", databasename , dbCache, True, False, sUser, sPw)
End SubCfront.ocx misery0 -
Hi,
I have the exact same problem when calling ConnectServerAndOpenDatabase.
The only difference is that I'm not using ASP.NET, but VB.NET.
System.Runtime.InteropServices.COMException (0x80010108): Method '~' of object '~' failed
Did you find any solutions to the problem since your post ?
It would be really helpful.
Thanks!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