Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 727
  • Last Modified:

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?
0
souldj
Asked:
souldj
2 Solutions
 
Big MontySenior Web Developer / CEO of ExchangeTree.org 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.
0
 
Chris BottomleyCommented:
Have you defined the values somewhere in your script for 'ForReading' & 'Create'?

Chris
0
 
souldjAuthor Commented:
I will upload the script for checking now.
uploadprocess2.txt
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Scott Fell, EE MVEDeveloperCommented:
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?
0
 
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
Screen-Shot-2014-01-29-at-6.06.3.png
Screen-Shot-2014-01-29-at-6.10.0.png
0
 
Scott Fell, EE MVEDeveloperCommented:
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.
0
 
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
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now