473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Microsoft VBScript runtime error '800a0046'

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<br>"
end if
%>

error:
Microsoft VBScript runtime error '800a0046'

Permission denied

/admin_rps/erp_send_test_sql.asp, line 19

Jul 19 '05 #1
3 58273
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" <ni*************@yahoo.com> wrote in message
news:05****************************@phx.gbl...
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<br>"
end if
%>

error:
Microsoft VBScript runtime error '800a0046'

Permission denied

/admin_rps/erp_send_test_sql.asp, line 19

Jul 19 '05 #2

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.

nicholas.gadacz
-----Original Message-----
I am guessing that, Windows 2003 permissions are tighter and hence theaccount your are running this ASP under, does not have permissions toexecute the BAT file. Check in the security tab of file properties, what theIUSR account permissions are.

--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com
"nicholas.gadacz" <ni*************@yahoo.com> wrote in messagenews:05****************************@phx.gbl...
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<br>"
end if
%>

error:
Microsoft VBScript runtime error '800a0046'

Permission denied

/admin_rps/erp_send_test_sql.asp, line 19

.

Jul 19 '05 #3
nicholas.gadacz wrote:
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.

<snip>
error:
Microsoft VBScript runtime error '800a0046'

Permission denied

/admin_rps/erp_send_test_sql.asp, line 19


What about permissions for whatever the batch file is doing? IUSR needs
permissions for those activities as well ...

HTH,
Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
3
by: Mike Kanski | last post by:
I get this error Microsoft VBScript runtime error '800a01fb' When i call LoadPicture method, or when i pretty much do any operation with PictureBox like setting width and height. It happened...
10
by: Seeker | last post by:
Hi! I have to do some developing and I'm trying to configure my server to mimic the operation of our production server. The issue I'm having is that I'm trying to use CDONTS to send an email...
1
by: PaulieS | last post by:
Hi all. Am migrating a customer from IIS5 on W2K server to IIS6 on W2K3. Zipped all the websites and unzipped them to the identical locations on new server. Used IISMT to migrate metabase. ...
0
by: Manojkumar | last post by:
Hai Folks, I am a new member to this group, can any one help me to find the solutions to this problem I am using Windows 2003 server and ASP Tear Component to encrupt the values while...
2
by: anidmarty | last post by:
Hey I'm a Sysadmin and my users are getting this error on my production box. It works fine on the dev box. There is a script that is run that generates this error. Production is clustered...
0
by: =?Utf-8?B?TWF0dCBDYWxob29u?= | last post by:
HI there, I am getting an error on my page which calls up a web service. Microsoft VBScript runtime error '800a13ba' Unknown runtime error: 'SearchQueryXML' /SearchResults.asp, line 142
4
by: Genken | last post by:
Hi can anybody help me i get this error when running this code. Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' And then a line number indicating where the error is, i...
1
by: Concheso | last post by:
Hi there! I just created a login page. 1/3 of the login works fine, but some like "Lost Password" of "Admin access to add users" are not working. Any help will be great! The erros: On...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.