I am having a problem determining the source of a problem. I have
created a very simple (for right now) windows script component that does
not work in an asp page(win2k server btw). I tested with a vbscript file
run from the machine and I can instantiate<sp> the object and it works
like it should, but when I try to use it in an asp page I get the following:

Server object error 'ASP 0177 : 800c0005'

Server.CreateObject Failed

/beta/Default.asp, line 3

800c0005

I can create the same component in VB6 and it works fine in the asp
page, so the problem has to be related to windows scripting. I can also
use the built in windows script objects such as filesystemobject without
any problem. I have verified that permissions on the file and directory
are sufficient for the IUSR_ account. I am stumped as to where to look
for the source of this problem. Any help would be greatly appreciated.


Thanks
Tony Heflin

Re: IIS and Windows Script Component Problem by David

David
Wed Jun 30 16:30:20 CDT 2004

I think your component is using something that requires more permissions
than the IUSR anonymous user, and that's why it's failing to create.

You will have to look through the WSC file to see if the top-level lines
(which are parsed when you instantiate the object to gather all function
names) as well as if you are including any object references inside the
XML-declaration portion for the component to see if there are any such
thing. I suspect you have some object references that are not compatible
with IUSR, hence it causes problems when used from ASP but not from
interactive user logon.

I have many complicated Windows Script components, and I have no issues
using them from .Net, VB, VBScript, JScript, or ASP page. COM-interop works
great.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Tony Heflin" <Theflin@rapair.com> wrote in message
news:uJjUmIrXEHA.2844@TK2MSFTNGP12.phx.gbl...
I am having a problem determining the source of a problem. I have
created a very simple (for right now) windows script component that does
not work in an asp page(win2k server btw). I tested with a vbscript file
run from the machine and I can instantiate<sp> the object and it works
like it should, but when I try to use it in an asp page I get the following:

Server object error 'ASP 0177 : 800c0005'

Server.CreateObject Failed

/beta/Default.asp, line 3

800c0005

I can create the same component in VB6 and it works fine in the asp
page, so the problem has to be related to windows scripting. I can also
use the built in windows script objects such as filesystemobject without
any problem. I have verified that permissions on the file and directory
are sufficient for the IUSR_ account. I am stumped as to where to look
for the source of this problem. Any help would be greatly appreciated.


Thanks
Tony Heflin