473,569 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error running bat file from ASP page

Hello All,

I am using windows 2000 server IIS 5.0

i was trying to run bat file from asp page and getting: Access Denied

but when i run the bat file from the command prompt on the local server,
it's running good
the bat file copying files from target computer in the LAN to the local
computer, o.k

i give write and execute permission on the IIS for this site
on the local folder(where the bat file) i assign full NTFS access for
"test" user
on the target computer i shared the folder with Everyone Full control and
assign Full NTFS access for the "test" user
but still cannot run the .bat file

where it can be the problem,
how i need to set the site on the IIS to run the bat file?

any how to run bat file from ASP page document?

Thanks for your help

Roni.

Jul 19 '05 #1
2 3395
My guess:

When you log on to the machine, you are logging in as domainname\user name.
domainname\user name is recognized by the remote machine, which is also in
the domain, and you have permissions to access the share.
YourServer\IUSR _YourServer is an unknown user to the remote machine, so it
will not have permission to access it. Possible solutions:

1. Create a new account on the remote machine that duplicates the local
IUSR account on your IIS server. (See Synchronizing the IUSR_machine
accounts at http://www.aspfaq.com/show.asp?id=2168)

2. Use a domain account for your site's anonymous access user.

3. Use basic authentication instead of anonymous access and make your users
log in to your ASP app. (Probably not desired.)

Ray at work


"Rocket Hawk" <ro****@msn.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hello All,

I am using windows 2000 server IIS 5.0

i was trying to run bat file from asp page and getting: Access Denied

but when i run the bat file from the command prompt on the local server,
it's running good
the bat file copying files from target computer in the LAN to the local
computer, o.k

i give write and execute permission on the IIS for this site
on the local folder(where the bat file) i assign full NTFS access for
"test" user
on the target computer i shared the folder with Everyone Full control and
assign Full NTFS access for the "test" user
but still cannot run the .bat file

where it can be the problem,
how i need to set the site on the IIS to run the bat file?

any how to run bat file from ASP page document?

Thanks for your help

Roni.


Jul 19 '05 #2
Hello,

On ServerA, I created new user account, and assign it on the IIS site for
anonymous access user
On ServerB, I created new user account EXACTLY as ServerA (user+password)
in the share permission and security tab i added the new local user with
full control
but still cannot run the bat file, getting error: Access is denied

where i am doing wronge?, any idea

Thanks

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:Oc******** ******@TK2MSFTN GP10.phx.gbl...
My guess:

When you log on to the machine, you are logging in as domainname\user name.
domainname\user name is recognized by the remote machine, which is also in
the domain, and you have permissions to access the share.
YourServer\IUSR _YourServer is an unknown user to the remote machine, so it
will not have permission to access it. Possible solutions:

1. Create a new account on the remote machine that duplicates the local
IUSR account on your IIS server. (See Synchronizing the IUSR_machine
accounts at http://www.aspfaq.com/show.asp?id=2168)

2. Use a domain account for your site's anonymous access user.

3. Use basic authentication instead of anonymous access and make your users log in to your ASP app. (Probably not desired.)

Ray at work


"Rocket Hawk" <ro****@msn.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hello All,

I am using windows 2000 server IIS 5.0

i was trying to run bat file from asp page and getting: Access Denied

but when i run the bat file from the command prompt on the local server,
it's running good
the bat file copying files from target computer in the LAN to the local
computer, o.k

i give write and execute permission on the IIS for this site
on the local folder(where the bat file) i assign full NTFS access for
"test" user
on the target computer i shared the folder with Everyone Full control and assign Full NTFS access for the "test" user
but still cannot run the .bat file

where it can be the problem,
how i need to set the site on the IIS to run the bat file?

any how to run bat file from ASP page document?

Thanks for your help

Roni.



Jul 19 '05 #3

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

Similar topics

5
7032
by: Patrice FRITSCH | last post by:
I'm trying to run a batch file from an asp page using WScript.Shell object. Dim oWSH set oWSH= Server.CreateObject("WScript.Shell") call oWSH.Run("cmd.exe /c " & szCmd , 0, true) szCmd contains the program to execute (fop.bat with several parameters). But I'm getting the following error message :
10
2684
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was...
5
449
by: Matthew Louden | last post by:
I have no idea what this run-time error about. Any ideas? I already change the web.config file for the attribute <customErrors mode="Off"/> but still not work. Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom
1
3147
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on Windows Server 2003 Enterprise Edition Only. This works on Windows 2000, Windows 2003 Web Edition and
0
5891
by: Adam Getchell | last post by:
I'm attempting to write a custom Authentication module using http://www.15seconds.com/Issue/020417.htm I looked at http://support.microsoft.com/default.aspx?scid=kb;EN-US;307996, but it doesn't setup things the way I want (ie, I want to integrate into an existing web application). So I want to deny unauthenticated users access to...
1
2840
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a WINDOWS 2003 SERVER, I created a new website, allocated port number 6000. Created a release version on my local machine and copied the WEB project from my...
5
1777
by: Lara | last post by:
Hi, I am getting the following error. All the files are stored in a directory named 'web' as told by the Server Administrtor can anyone help me Server Error in '/' Application. ---------------------------------------------------------------------------- ----
7
2920
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String Dim returnstr As String Dim URL As String = "http://www.dydomain.com/test.asp"
23
5070
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the solution, and was greeted with the following error: ======================================================================== It is an error to use a...
1
1841
by: moondaddy | last post by:
running vs2005 I have a small test website called TestPublish which has default.aspx, ErrorPage.aspx and testpage.htm. The default page just says hello world and no other code and the errorpage has nothing yet (not sure how to make an error page yet...). After publishing the site to a remote server I can browse to testpage.htm, but not...
0
7697
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...
0
7612
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...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7672
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...
0
7968
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...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2113
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
1
1212
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.