Classic ASP Server.CreateObject Failed 800401f3

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.
SevronAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
Run

regsvr32 scrrun.dll
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
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
SevronAuthor Commented:
It succeeded registering the scrrun.dll however the issue still remains.
Is there anything else that could cause this?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

GaryCommented:
Then as Monty says.
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
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
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
0
SevronAuthor Commented:
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
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
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
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
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
SevronAuthor Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SevronAuthor Commented:
Great job thanks for all the help.
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
most excellent, glad you got it working!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

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.