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!
Cfront.ocx misery
0
Comments
www.dasautomatisering.nl
System.Runtime.InteropServices.COMException (0x80010108): Method '~' of object '~' failed
which as you can see is not very helpful.
Can you give us the source code?
What is your development environment?
www.dasautomatisering.nl
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 Sub
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!