Commerce Server General - GetCounterValue Error

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > June 2004 > GetCounterValue Error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author GetCounterValue Error
Vivianne Montalvão

2004-04-01, 2:37 pm

What is wrong in this code?

Set oGenID = Server.CreateObject("Commerce.GenID")
sOrder = oGenID.GetCounterValue("NameOfTracking", 4)

It's the same of documentation of CS2K2!!!

I'm getting Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument


Ashish Kumar [MSFT]

2004-06-28, 7:29 pm

Did you call the GenID.Initialize method before using the GetCounterValue
method? The Initialize method is responsible for connecting the GenID
object to the database that stores the table of counters.

This information is present in the documentation too. Does this help?

Thanks,
Ashish
--------------------
Content-Class: urn:content-classes:message
From: =?iso-8859-1?Q?Vivianne_Montalv=E3o?=
<vivianne.montalvao@concretesolutions.com.br>
Sender: =?iso-8859-1?Q?Vivianne_Montalv=E3o?=
<vivianne.montalvao@concretesolutions.com.br>
Subject: GetCounterValue Error
Date: Thu, 1 Apr 2004 11:18:18 -0800
Lines: 11
Message-ID: <207701c4181e$16ae3e60$7d02280a@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcQYHhauGuMW8IQ7Q76ccX/z9QrXtw==
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: tk2msftngxs01.phx.gbl 10.40.2.125
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXS01.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:13539
X-Tomcat-NG: microsoft.public.commerceserver.general

What is wrong in this code?

Set oGenID = Server.CreateObject("Commerce.GenID")
sOrder = oGenID.GetCounterValue("NameOfTracking", 4)

It's the same of documentation of CS2K2!!!

I'm getting Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument




This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com