473,804 Members | 4,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.crea teobject("WScri pt.shell")
ret=oWS.Run("c: \bat\send_erp_t est.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_s ql.asp, line 19

Jul 19 '05 #1
3 58301
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.gadac z" <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.crea teobject("WScri pt.shell")
ret=oWS.Run("c: \bat\send_erp_t est.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_s ql.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.gada cz" <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.crea teobject("WScri pt.shell")
ret=oWS.Run("c: \bat\send_erp_t est.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_s ql.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_s ql.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
10829
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 the browser, followed by a descriptive error message: Microsoft VBScript runtime error '800a000b' Division by zero followed by the number of the error-making line
3
7344
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 after i apllied Service Pack 4 to my 2000 machine. Before it worked properly. Any suggestions?
10
9789
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 under IIS on a Windows 2003 Server. The server does not have the SMTP service running, but I do have a third party SMTP/POP/IMAP server running. I have copied the CDONTS.DLL file and registered it. In the Web Serice Extensions I have enabled the...
1
1013
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. Got this error when I tried to run a very basic page... code: <%@ LANGUAGE=vbscript %> <%
0
4403
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 sending the values to other pages, it shows me error
2
15808
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 environment using Microsoft Application Center. This was working before and starting throwing this error about 15 days ago. any help would be much appreciated thanks
0
2069
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
8849
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 cant see any errors with this code please assist. Thanks in advance. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
1
2790
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 the Lost Password using for instance: me@me.com
0
6613
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10320
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.