The leading provider of version control solution and TWAIN SDK
The leading provider of version control solution and TWAIN SDK

Dynamsoft Forums

Support for Version Control, Bug Tracking and Configuration Management Software
* Login   * Register
* FAQ    * Search

It is currently Wed May 16, 2012 7:52 pm




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ISAWVSDK::Login returns 16000 VSS unspecified error.
PostPosted: Mon Mar 30, 2009 12:17 am 
Offline

Joined: Mon Mar 30, 2009 12:06 am
Posts: 3
Hi,
I encountered some problems when i programimg with COM SDK.
when i use ISAWVSDK::Login method to login the database, it returns 16000 which means "VSS unspecified error".
But when i use the same ip,port,username,password, and databasename via SAW Client App, it works well.
How can i do to resolve it?

Thanks.
Ryan.


Top
 Profile  
 
 Post subject: Re: ISAWVSDK::Login returns 16000 VSS unspecified error.
PostPosted: Mon Mar 30, 2009 9:06 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi Ryan,

For this issue, please take a look at this FAQ item:
http://www.dynamsoft.com/Products/SAW_F ... ngdatabase

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: ISAWVSDK::Login returns 16000 VSS unspecified error.
PostPosted: Mon Mar 30, 2009 11:17 pm 
Offline

Joined: Mon Mar 30, 2009 12:06 am
Posts: 3
er... But It works well when I login the database via SAW Client Application. Does SAW Client use the same method in COM SDK?


Top
 Profile  
 
 Post subject: Re: ISAWVSDK::Login returns 16000 VSS unspecified error.
PostPosted: Thu Apr 02, 2009 11:46 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Yes. SAW SDK uses the same methond as SAW Client on the server side.

To better pinpoint the cause of the problem, would you please send us the result description returned by the ConnectToServer method? Also, you can let us know your code.

For more information about the ConnectToServer method, you can refer to the SDK help document.

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: ISAWVSDK::Login returns 16000 VSS unspecified error.
PostPosted: Mon Apr 06, 2009 11:19 pm 
Offline

Joined: Mon Mar 30, 2009 12:06 am
Posts: 3
Hi, I use the SDK in C++ programs.

//ConnectToServer
VARIANT_BOOL blConnect;
//Enum_EncryptType erpType;
VARIANT_BOOL olyTrail,Canceled;
long LeftTrialDays;
BSTR description;
BSTR bstrIP = m_strIP.AllocSysString();

long rlt = saw->ConnectToServer(bstrIP,(long)nPort,&blConnect,&encryptType,&olyTrail,&LeftTrialDays,&Canceled,&description,Enum_NOPROXY,OLESTR(""),0,OLESTR(""),OLESTR(""));
::SysFreeString(bstrIP);
::SysFreeString(description);
if(rlt == 0)
{
//Return values
//blConnect = -1
//encryptType = Enum_Unencrypted
//olyTrail = LeftTrialDays = 0
//Canceled
//description = "Connected to server successfully"

//Login
ISAWVKeyInfoSetPtr KeyInfoSet = NULL;
if(KeyInfoSet.CreateInstance(__uuidof(SAWVKeyInfoSet)) != S_OK)
return;
VARIANT_BOOL MustChangePassword,Canceled;
long ExpireDays,rlt;
BSTR description;
BSTR bstrName = strName.AllocSysString();
BSTR bstrPwd = strPwd.AllocSysString();
BSTR bstrDB = strDB.AllocSysString();

rlt = saw->Login(bstrName,bstrPwd,bstrDB,KeyInfoSet,&MustChangePassword,&ExpireDays,&Canceled,&description);
::SysFreeString(bstrName);
::SysFreeString(bstrPwd);
::SysFreeString(bstrDB);
::SysFreeString(description);
KeyInfoSet.Release();

//return value
//rlt = 16000 means "VSS unspecified error." in SDK's error lists.
//MustChangePassword = -1
//Canceled = 0
//ExpireDays = -858993460
//description = "Invalid access code (bad parameter)."

Thanks for your help.


Top
 Profile  
 
 Post subject: Re: ISAWVSDK::Login returns 16000 VSS unspecified error.
PostPosted: Thu Apr 09, 2009 6:15 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
We tested your code. It works fine on our machine.

>"Invalid access code (bad parameter)."
Please double check that you assign the correct user name, password and database in the function.

Thanks.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

It is currently Wed May 16, 2012 7:52 pm


Who is online

Users browsing this forum: mgjpgoqlrwk and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog