CRM Software - CABC | Maximizer | Maximizer Add-ons | Services | Support | Store | News

    Find out about Linktracker for Maximzier
CABC    Maxtalk  Hop To Forum Categories  Maximizer CRM Software  Hop To Forums  Maximizer Support    Methods Init / DBLoginCheck fails in client/server scenario
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
New Member
Posted
My code to login into an address book fails, when the client and server are different machines, yet the same code works when the client and server portions are run on the same machine.

I'm composing some ASP code for a website. This code retreives some information from Maximizer, and displays it upon a website. The code to log into the database is the stock example code:

Option Explicit

Dim o, c, vLogin

Set o = CreateObject("MaAccess.Host")
o.Init "MaAccess Sample", "DSN=MAS_EsconaTutorial", 5, "", ""
If Not o.DBLoginCheck("", "JNAPOLI", "password", vLogin) Then
Wscript.Echo "Login failed."
Else
Set c = o.CreateObject("Company", vLogin)
c.Clear
c.SetLikeValue "Company_Name", "ABC%"
If c.Select(1) Then
Wscript.Echo c.Company_Name & " - " & c.Client_Id
Else
Wscript.Echo "No match."
End If
c.EndSelect
Set c = Nothing
End If
Set o = Nothing


Now, when my client (my browser) and my server (running ISS) are both on machine A, this code executes successfully. Likewise, when the client and server both execute on machine B, the code works. Yet, when I run the client on machine A, and the server on machine B (or vice versa), then the code fails to log into Maximizer. So, as long as all of the code runs locally on one machine, it works. However, if I run the client, my browser, on one machine, and the server upon another, it fails.

Any insight would be appreciated.
 
Posts: 1 | Registered: March 18, 2008Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

CABC    Maxtalk  Hop To Forum Categories  Maximizer CRM Software  Hop To Forums  Maximizer Support    Methods Init / DBLoginCheck fails in client/server scenario

© CABC Ltd 2002 - 2005. All Rights Reserved.
Maximizer is a trademark of Maximizer Software inc.