Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Server throws an error on file script object in ASP

Posted on 2014-01-28
8
710 Views
Last Modified: 2014-01-29
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
Comment
Question by:souldj
8 Comments
 
LVL 33

Assisted Solution

by:Big Monty
Big Monty earned 250 total points
ID: 39816394
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
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 39816917
Have you defined the values somewhere in your script for 'ForReading' & 'Create'?

Chris
0
 
LVL 1

Author Comment

by:souldj
ID: 39817072
I will upload the script for checking now.
uploadprocess2.txt
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 250 total points
ID: 39817121
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
 
LVL 1

Author Comment

by:souldj
ID: 39818293
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
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39818414
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
 
LVL 1

Author Closing Comment

by:souldj
ID: 39818491
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question