Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Microsoft VBScript runtime error '800a0046' Permission denied

Posted on 2010-11-23
6
Medium Priority
?
3,200 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
[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
6 Comments
 
LVL 29

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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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 …

670 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