Akos,

Did you ever figure this out? I'm at the exact same spot now as you were then.

Thanks!

RLS

> wondering if anyone has experience with using cfobject with .net 
> assembly
> 
> this is the testing code so far:
> 
> <cfset ApiDirectory = "c:\windows\system32\inetsrv\">
> 
> <cfobject type=".NET"assembly="#ApiDirectory#Microsoft.Web.
> Administration.dll" name="thisObj" class="Microsoft.Web.Administration.
> SiteCollection">
> 
> <cfdump var = "#thisObj#">
> 
> This dumps out a list of methods can be used such as Add(), Delete() 
> etc
> I'm interested in the Add() method which takes 3 parameters 2 strings 
> and
> an integer like Add("param1","param2",param3)
> 
> So I have:
> <cfset result = thisObj.Add("somesite.com","e:\Domains\",80)>
> 
> <cfdump var = "#result#">
> 
> this gives:
> Object instantiation exception.
> An exception occurred while instantiating a Java object. The class 
> must not
> be an interface or an abstract class. If the class has a constructor 
> that
> accepts an argument, you must call the constructor explicitly using 
> the
> init(args) method. Error : Microsoft.Web.Administration.
> SiteCollection
> 
> How can I invoke any of those methods?
> Any help would be greatly appreciated. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353564
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to