Solved

Microsoft VBScript runtime error '800a0046' Permission denied

Posted on 2010-11-23
6
2,933 Views
Last Modified: 2012-05-10
Hello,

We have a website (Classic ASP) on Windows Server 2008 which is virtualized. We have had a runtime error problem when one ASP program executes an exe file which is created by VB6. I made a test ASP program (testexe.asp) and a test exe file (testmail.exe) which is created by VB6. In the live (actual) website, the below error appears when I execute the testexe.asp:

Microsoft VBScript runtime error '800a0046'
Permission denied
/testexe.asp, line 9

Here is the part of source code in the testexe.asp:
      set WshShell = CreateObject("WScript.Shell")
      Return = WshShell.Run("D:\…\testmail.exe", 0, False)  <- line 9

We also have a website as test environment, and they have same structures. I have copied testexe.asp (calling same testmail.exe). In the test site, testexe.asp can execute testmail.exe successfully.

I configured full control permission for IUSR, Administrators, Users, and SYSTEM (for test) to testexe.asp and testmail.exe in both environments, and then I executed testexe.asp. It worked in the test site, but it didn’t work in the actual site.

I have compared the Application pools of them. The setting of Manual Recycle, Primary Memory Limit, and Virtual Memory Limit are different though we don’t think that these settings cause this problem.

I also compared below IIS settings of both sites, and these settings are same.

      Authentication
      Authorization Rules
      Handler Mappings
      Modules

Here is Windows Server and IIS version:
      Server: Windows Server 2008 standard
      IIS: IIS 7

I can't find what is wrong with it. Please help!

Thank you,

Kazu
0
Comment
Question by:discointer
6 Comments
 
LVL 28

Expert Comment

by:sammySeltzer
Comment Utility
Check out this microsoft kb

http://support.microsoft.com/kb/963211

0
 
LVL 1

Expert Comment

by:warhero
Comment Utility
hai mate,

A similar question was asked before here, go and see commends in http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_21672776.html

As it looks i don't think the problem is with your settings of IIS server, rather your computer itself. What i mean is that it might be restricting access based on what your program written in VB6, what does your VB6 program do, does it try to access files, etc.

hop it helps
0
 

Author Comment

by:discointer
Comment Utility
sammySeltzer:
We didn’t use the Import Data Wizard. Thanks, though.

warhero:
The very same testmail.exe is executed by testexe.asp in the test environment. Therefore I don’t think testmail.exe has any problems.

Isn’t it weird?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 3

Expert Comment

by:jkurzner
Comment Utility
Did you give full control to the Network Service user?
0
 

Accepted Solution

by:
discointer earned 0 total points
Comment Utility
I think we found the solution. I noticed it works when I recycle the application pool manually. Then I checked "Manual Recycle" in Application Pools advanced setting, and it was set "False."
After I turned it to "True", the vbscript calls the .exe program successfully.
0
 

Author Closing Comment

by:discointer
Comment Utility
n/a
0

Featured Post

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.

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now