Error trying to create Scripting.FileSystemObject

Error trying to create Scripting.FileSystemObject

am 07.01.2008 19:13:05 von pkoutoul

I am trying to set up a test "server" on an XP (SP2) workstation. Most
everything is working but whenever I attempt to view an ASP page that
contains a call to FSO I get the following error:

Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'Scripting.FileSystemObject'

I can run vbs with the same call to fso locally in a vbs file, so the
problem is not related directly to WSH (I think). It seems to be more of an
IIS thing.

I have scripting enabled in IIS and permissions seem to be set okay. What
else might be causing this error?

Re: Error trying to create Scripting.FileSystemObject

am 08.01.2008 02:18:23 von Marco.Shaw

pkoutoul wrote:
> I am trying to set up a test "server" on an XP (SP2) workstation. Most
> everything is working but whenever I attempt to view an ASP page that
> contains a call to FSO I get the following error:
>
> Microsoft VBScript runtime error '800a01ad'
> ActiveX component can't create object: 'Scripting.FileSystemObject'
>
> I can run vbs with the same call to fso locally in a vbs file, so the
> problem is not related directly to WSH (I think). It seems to be more of an
> IIS thing.
>
> I have scripting enabled in IIS and permissions seem to be set okay. What
> else might be causing this error?

With ASP, make sure you're calling it as: server.createobject.

http://www.dotnetindex.com/articles/5539_Creating_Text_files _on_server.asp

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com

Re: Error trying to create Scripting.FileSystemObject

am 08.01.2008 13:54:02 von pkoutoul

Thanks, Marco. I can't believe I pulled such a bone headed thing as that. I
knew better but just wasn't thinking. Geez...