Server throws an error on file script object in ASP

I have an application that uploads a file and then reads the file into an address book.

It has been recently moved from a windows 2003 server to a windows 2008 server and since the move, the server throws an error when ever we try to make it read a file

      ' Instantiate the FileSystemObject
                                                Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
                                          ' use Opentextfile Method to Open the text File
                                                Set TS = objFSO.OpenTextFile(strFileName, ForReading, Create)

What could be the problem?
Who is Participating?
Scott Fell, EE MVEConnect With a Mentor Developer & EE ModeratorCommented:
Can  you confirm the exact error message you get and the line number and what line of code that is.

Are you sure you have aspUPload installed on the new server?
Big MontyConnect With a Mentor Senior Web Developer / CEO of Commented:
hard to tell, it could be a permissions error, an invalid path error, etc. would be helpful to see what the error message entails :)

my guess is a permissions error, make sure the iis account (usually ISR_User i think) has access to the folder you're trying to write to.
Chris BottomleyCommented:
Have you defined the values somewhere in your script for 'ForReading' & 'Create'?

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

souldjAuthor Commented:
I will upload the script for checking now.
souldjAuthor Commented:
ok, We installed ASPupload 32bit vesion on our 64bit Windows 2008 Server.

But when I just tried the test script provided, we get this error message

So, how do we get IIS to execute this 32bit software
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:

Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object

A. It is a permission problem. Make sure Everyone has Full Control over AspUpload.dll.
souldjAuthor Commented:
The Problem was in the App pool management, enabling 32 bit applications to run on a virtual directory on a 64 bit installation of IIS. In the end, we installed both 32 and 64 bit license of ASPUpload and checked all permissions again
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.