This is from www.cfcomet.com:
http://www.cfcomet.com/cfcomet/Other/index.cfm?ArticleID=32381637-0922-41CA-BBE305C2D66A7025#22
22. COM error 0x5. Access is denied.
Although this isn't a COM error per se, it is seen largely when using COM objects
by client
services (i.e., ColdFusion) that do not have sufficient access to an object. By
default, ColdFusion
is given access to the local system account, which on NT and 2000 will not allow
you to run many
objects, such as the ones provided by MS Office.
To fix this problem, one way is to assign ColdFusion services administrative
access. Go to your
"Services" control panel in NT or 2000 (you shouldn't get 'Access Denied' on 95 or
98). Next,
you have to alter the 3 services' logon properties in the services control panel.
To do this,
on each ColdFusion service (ColdFusion Application Server, ColdFusion Executive,
and ColdFusion
RDS), right-click, choose "Properties", and then you'll see a tab at the top
labeled "Log On".
Click it, and you will then see "This Account", which is a radio button. Click the
"This Account"
button then click "Browse" to choose who to logon as, at which point you need to
choose
"Administrator".
On Windows NT, in the Services applet under the Control Panel, select the service
and click on the
"Startup" button (or double-click on the service). In the "Log On As:" groupbox,
select the "This
Account:" radio button, enter the account name (you can use the "..." button to
browse the account
list), and enter the password twice. A good thing to remember is that if the
password to the account
is ever changed, all services using that account as the logon must be updated or
they will
mysteriously fail at the next logon/reboot.
----- Original Message -----
From: "James Ang" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 7:33 AM
Subject: <cfset a.b = c> --> COM error 0x80070005. Access is denied.
> Here's what I was trying to do based on an ASP VBScript example.
>
> ASP VBScript:
> SET a.b = c
>
> CFML:
> <cfset a.b = c>
>
> a is a COM object.
> b is a property of a that returns an object (i.e. not a simple value).
> c is an instantiated object of the same type as b.
>
> When a is instantiated, the property b is set to Nothing (i.e. void).
>
> Both the instantiation of a and c were done via CFOBJECT tag (as opposed to the
>CreateObject() function which I have close to zero
faith in from my experience in CF 4.5.x).
>
> I get the following error in CFML:
> COM error 0x80070005. Access is denied.
>
> The code worked fine in ASP VBScript.
>
> CFAS is 5.0 Enterprise (eval/single-user) running on Windows 2000 Server.
>
> So, what gives? :)
>
> Preliminary/Cursory search of cfcomet did not yield anything useful.
>
> Hope to hear something from you gurus here. :)
>
> James Ang
> [EMAIL PROTECTED]
>
>
>
>
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists