Solved

Microsoft VBScript runtime error '800a0046' Permission denied

Posted on 2010-11-23
6
2,984 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

813 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

13 Experts available now in Live!

Get 1:1 Help Now