Solved

Microsoft VBScript runtime error '800a0046' Permission denied

Posted on 2010-11-23
6
3,057 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

OfficeMate Freezes on login or does not load after login credentials are input.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

710 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