?
Solved

Classic ASP Server.CreateObject Failed 800401f3

Posted on 2014-07-30
14
Medium Priority
?
7,619 Views
Last Modified: 2014-08-04
Hi,
I am currently having issues with our Classic ASP application, it has been recently moved  over to a new server. It should be noted it runs fine on our old server.
The versions of windows are slightly different as our new one has service pack 1.
Old Server: Windows Server 2008
New Server: Windows Server 2008 SP1

The error I am getting is as follows, this is occurring on a page which is supposed to serve a PDF document to the user for a download.
Server.CreateObject Failed 800401f3

The code line in question is the following and does work on our old server which leads me to believe something is not set correctly on the new server or IIS.
Set fs = Server.CreateObject("Scripting.FileSystemObject")

Having been reading I have tried a few methods one being registering the scrrun.dll
I have also tried giving read write permission to the folder where the download files are located.

I just found another solution which was to register the mswcrun.dll on our server however it did not exist on the system so I manually downloaded and registered the dll again.
However, I am still getting the same error.
If anyone can help with a solution to this issue it would be greatly appreciated.

Thanks.
0
Comment
Question by:Sevron
[X]
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
  • 5
  • 4
  • 2
  • +1
14 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40229328
Run

regsvr32 scrrun.dll
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40229337
i'm going to guess that it's a permissions issue, what user account did you assign permissions to? assuming it's the IUSR account, make sure it has read/write access to the folder, also make sure the IUSR account (assuming that's the account you're using) has access to scrrun.dll
0
 

Author Comment

by:Sevron
ID: 40229340
It succeeded registering the scrrun.dll however the issue still remains.
Is there anything else that could cause this?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 58

Expert Comment

by:Gary
ID: 40229345
Then as Monty says.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40229346
are you registering the dll as an admin?

did you check the account has access to the physical dll?

is this a local folder you're saving to or a network drive?
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40229355
0
 

Author Comment

by:Sevron
ID: 40229454
We are registering the dll as an admin.

The security settings for the physical dll says IUSR does not have access to it but when I try to give it access it says permission denied. Is this due to it being in the system32 directory?

This is a local folder.

We also tried the solution regarding the app pool however, this still did not resolve the issue.
I added the registry entry and restarted the app pool however the file still did not download.
0
 
LVL 33

Assisted Solution

by:Big Monty
Big Monty earned 2000 total points
ID: 40229682
as a test, can you create a simple web page using the code below and verify the error still occurs. I want to be 100% positive which line of code is failing:

<%
dim fs
Set fs = Server.CreateObject("Scripting.FileSystemObject")
%>

Open in new window


assuming this fails, can you then change the code to the following to see if the CreateObject is failing with everything, or if it's just for the FSO

<%
dim rs
Set rs = Server.CreateObject("ADODB.RecordSet")
%>

Open in new window

0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 40230332
When you registered, did you follow Gary's instructions to use regsvr32

Are you 300% sure the issue is with fso object?

Did you look at the logs?
0
 

Accepted Solution

by:
Sevron earned 0 total points
ID: 40231188
Thanks Big Monty, you have pointed me in the right direction.
It was not that line it was this following line.

Set oMyObject = Server.CreateObject("ReadFile.BinRead")

The issue was the ReadFile.dll was not registered on the server.
This then threw a Activex object could not be created error which was due to the application needing to be run in 32bit.
I altered this in the app pool in IIS and the downloads are now working.

Thanks for all the help.
0
 

Author Comment

by:Sevron
ID: 40231189
Great job thanks for all the help.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40231917
most excellent, glad you got it working!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Touch screen experience for personal computers, improved security, and performance have made Windows 8 a great hit amongst users. If you are an Outlook user and thinking of or have upgraded to Win 8 or 8.1, then here are some guidelines that may pro…
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
Suggested Courses

800 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