Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I posted this initially to Stackoverflow. I was told to ask here since the error is probably not code related, but a configuration error.

I'm working with an ASP application and get the following error:

Microsoft VBScript runtime error '800a0030'

Error in loading DLL: 'Server.CreateObject'

/XX/XXXXX/X/XXXX/XXXXX/global.asa, line 108

The offending line 108:

Set oFileSystem = Server.CreateObject("Scripting.FileSystemObject")

I changed Server.CreateObject("Scripting.FileSystemObject") to Server.CreateObject("Shell.Application") to see if there was a problem with Scripting.FileSystemObject, but the application returns the same error with both arguments within Server.CreateObject.

This leads me to believe I cannot run Server.CreateObject on my development machine.

I successfully built and ran a simple .vbs file from the command window. It contained both CreateObject("Shell.Application") and CreateObject("Scripting.FileSystemObject").

The box is win7 sp1 enterprise edition running IIS7.5.

My co-workers are as stumped as I am.

Can anyone clue me in to what IIS settings need to be flipped for Server.CreateObject to "work"?

share|improve this question
    
What happens when you run "regsvr32 %systemroot%\system32\inetsrv\asp.dll" and try again? –  Ryan Ries Jan 16 '13 at 20:49
    
I've already done that and it made no difference. :( –  TimWeis75 Jan 16 '13 at 20:50
    
I've created a new application for testing. IIS doesn't know what Server.XXX or Request.XXX are. Any ideas? –  TimWeis75 Jan 16 '13 at 20:58
    
Fixed. Control Panel-Programs and Features-Turn Windows Features on or off-drill down to uncheck asp. Reboot. Check asp. And now it works. –  TimWeis75 Jan 16 '13 at 21:43
    
Figures. It came to mind, but I wasn't willing to commit to posting an answer like "Reinstall ASP." Too risky. :P –  Ryan Ries Jan 16 '13 at 21:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.