Microsoft Vbscript Runtime Error '800a0046' Batch File 2003
Question Need help? Post your question and get tips & solutions from a community of 418,590 IT Pros & Developers. It's quick & easy. Microsoft VBScript runtime error '800a0046' P: n/a nicholas.gadacz hello all, i have a permission issue. my script works fine on my windows2000 server development box, however when i move it to my windows2003 production server it produces an error. any help would be great. script <% set oWS=server.createobject("WScript.shell") ret=oWS.Run("c:\bat\send_erp_test.bat", 0, true) 'line 19 if(ret=0) then message = "test_sent" else message = "not working
" end if %> error: Microsoft VBScript runtime error '800a0046' Permission denied /admin_rps/erp_send_test_sql.asp, line 19 Jul 19 '05 #1 Post Reply Share this Question 3 Replies P: n/a Manohar Kamath [MVP] I am guessing that, Windows 2003 permissions are tighter and hence the account your are running this ASP under, does not have permissions to execute the BAT file. Check in the security tab of file properties, what the IUSR account permissions are. -- Manohar Kamath Editor, .netBooks www.dotnetbooks.com "nicholas.gadacz"
" end if %> error: Microsoft VBScript runtime error '800a0046' Permission denied /admin_rps/erp_send_test_sql.asp, line 19 Jul 19 '05 #2 P: n/a nicholas.gadacz i am sure it is a permissions problem but i just don't know what. for the bat file. it is in c:\bat and IUSR has rights to the directory and that file. do i have to do anything in iis? in windows 2000 server i did not have to do anything, but my machine is pretty open because i am behind a firewall. any help would be great. there is some difference between 2000 and 2003 that i am missing. nic
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 5 & IIS 6 Security I get "Microsoft VBScript runtime error '800a0046' Permission denied... I get "Microsoft VBScript runtime error '800a0046' Permission denied" when using wcript.shell [Answered]RSS 2 replies Last post Mar 29, 2012 05:02 AM by Dalong Zhang - MSFT ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply sconnie 2 Posts I get "Microsoft VBScript runtime error '800a0046' Permission denied" when https://bytes.com/topic/asp-classic/answers/53935-microsoft-vbscript-runtime-error-800a0046 using wcript.shell Mar 27, 2012 05:35 PM|sconnie|LINK I have added IUSR_machinename to have read/write/execute rights to the directory that contains the batch file, and the cmd.exe file itself, as well as ftp.exe. my code is something like this: set wshell = CreateObject("WScript.Shell") wshell.run "C:\Batch\ftp_testimonials.bat" set wshell = nothing I have tried using procmon to see what https://forums.iis.net/t/prev/1188162 it's failing on, but there are so many events that I can't figure out what to filter on. thanks Reply sconnie 2 Posts Re: I get "Microsoft VBScript runtime error '800a0046' Permission denied" when using wcript.shel... Mar 27, 2012 05:57 PM|sconnie|LINK I should add that we are running Small Business Server 2003 and this is not an internet facing web server. Reply Dalong Zhang... 641 Posts Re: I get "Microsoft VBScript runtime error '800a0046' Permission denied" when using wcript.shel... Mar 29, 2012 05:02 AM|Dalong Zhang - MSFT|LINK Hi, You can try setting application pool identity to LocalSystem. If this does not work for you, I suggest using Microsoft ProcMon to monitor IIS process w3wp.exe and look for "access denied" entries. Then find the exact problem. Please mark the replies as answers if they help or unmark if not. Feedback to us ‹ Previous Thread|Next Thread › This site is managed for Microsoft by Neudesic, LLC. | © 2016 Microsoft. All rights reserved. Privacy Statement Terms of Use Contact Us Advertise With Us Hosted on Microsoft Azure Follow us on: Twitter Facebook Microsoft Feedback on IIS Powered by IIS8
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS https://forums.iis.net/t/1148515.aspx 5 & IIS 6 Classic ASP WScript.Shell Microsoft VBScript runtime http://microsoft.vbscript.runtime.error.800a0046.batch.file.2003.wintechpro.org/ error '800a0046' WScript.Shell Microsoft VBScript runtime error '800a0046' [Answered]RSS 8 replies Last post Jun 20, 2008 02:20 PM by tomkmvp ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply asidana 20 microsoft vbscript Posts WScript.Shell Microsoft VBScript runtime error '800a0046' Mar 20, 2008 08:05 AM|asidana|LINK
in the file (corrupt the file) so you can't work with it, or prevent you from using a feature. Unlike other errors, problems don't typically cause Windows or a program to stop working. So this can occur if you are running two software programs that aren't compatible, if your computer has memory problems, or if the computer has been infected with malicious software. If keeps occurring, follow these steps: 1. Install the latest updates for Windows and for the program displaying . Note that the update for the program might be listed as an optional update on the Windows Update page. Open Windows Update by clicking the Start button Picture of the Start button. In the search box, type Update, and then, in the list of results, click Windows Update. For more information about Windows Update, see Install Windows updates in Windows 7. 2. Check Action Center for a solution to the program displaying the batch error. When you have Windows Error Reporting turned on and a program stops working, a problem report is typically sent to Microsoft for more analysis. If a solution is available, or there are steps you can take to minimize the likelihood of the problem recurring, they'll be available in Action Center. Open Action Center by clicking the Start button Picture of the Start button, clicking Control Panel, and then, under System and Security, clicking Review your computer's status. 3. Update and run your antivirus software. Windows doesn't come with antivirus software, but Action Center can often monitor the antivirus software that you or your computer manufacturer have installed. Open Action Center by clicking the Start button Picture of the Start button, clicking Control Panel, and then, under System and Security, clicking Review your computer's status. 4. Make sure your computer has at least the minimum amount of random access memory (RAM) required to run the program that is displaying the error. Look for the program requirements online or in the packaging information. To learn more about computer memory, see View your computer information. Steps To Follow To Fix Runtime Replace At Control Asp.net Press Ctrl+Alt+Del on your computer and open the ‘Task Manager’ to see the list of programs you are running. Press the “Processes” tab and sort the list by ‘User name’; Most of the time are caused due to conflicts with running programs and you can eliminate the problem right away by ending the program causing the this conflict. Stop the running programs one by one to identify the incompatible program. You can stop the programs running under your user name by