Solved

Microsoft VBScript runtime error '800a0046' Permission denied

Posted on 2010-11-23
6
3,015 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
ID: 34201860
Check out this microsoft kb

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

0
 
LVL 1

Expert Comment

by:warhero
ID: 34201882
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
ID: 34208108
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
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 3

Expert Comment

by:jkurzner
ID: 34247643
Did you give full control to the Network Service user?
0
 

Accepted Solution

by:
discointer earned 0 total points
ID: 34260457
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
ID: 34289899
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.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
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…

839 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