Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / January 2006



Tip: Looking for answers? Try searching our database.

ComObjectInstantiationException for VSSDatabase

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rdbhalla77 - 12 Aug 2004 01:16 GMT
Hello Everyone,

I am trying to access VSS Automation APIs through coldfusion to find out the
version of a file

        <cfobject   type    = "COM"  
                           action  = "create"  
                           class   = "SourceSafeTypeLib.VSSDatabase"  
                          name    = "vss">

        <cfscript>
             vss.open("\\servername\SRCSAFE.INI", "username", "password");
            Ver = vss.VSSItem("$\filepath\filename.cfm").VersionNumber();
       </cfscript>
       <cfoutput>#Ver#</cfoutput>

However, I get following error

The cause of this exception was that:
coldfusion.runtime.com.ComObjectInstantiationException: An exception occurred
when instantiating a Com object..  
 
The error occurred in E:\TestDir\test.cfm: line 21
 
Called from E:\TestDir\test.cfm: line 21
 
19 :         <cfobject   type    = "COM"  
20 :                     action  = "create"  
21 :                     class   = "SourceSafeTypeLib.VSSDatabase"  
22 :                     name    = "vss">
23 :     </cfcatch>

I have installed VSS client on the WebServer. So all the required DLLs should
be available. To Verify, I tried to access the same VSS Automation APIs through
VB, compiled an exe and it worked fine on the same server.

Am I missing something?

TIA
RB
Ben - 12 Aug 2004 19:37 GMT
Try this:

<cfobject   type    = "COM"  
action  = "create"  
class   = "SourceSafe"  
name    = "vss">

<cfdump var=#vss#>

> Hello Everyone,
>
[quoted text clipped - 36 lines]
>  TIA
>  RB
khitlin - 31 Jan 2006 17:51 GMT
Anyone doing this with CFMX 7?  I want to query our VSS database into CFTREE or something like that.  
Where do you set up the COM object within CF?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.