Link to home
Start Free TrialLog in
Avatar of Destiny Amana
Destiny AmanaFlag for Nigeria

asked on

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?
SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Have you defined the values somewhere in your script for 'ForReading' & 'Create'?

Chris
Avatar of Destiny Amana

ASKER

I will upload the script for checking now.
uploadprocess2.txt
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Screen-Shot-2014-01-29-at-6.06.3.png
Screen-Shot-2014-01-29-at-6.10.0.png
http://www.aspupload.com/faq.html

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.
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