473,385 Members | 1,907 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,385 software developers and data experts.

ASP File Object "Permission Denied"

This file is suppose to display "Welcome to the Zone!" and also write it to a text file instead i get an runtime error 0x800A0046 Permission Denied
The Script:

<html>
<title>File Object</title>
<body>
<hr>
<%
set TestFile=Server.CreateObject("Scripting.FileSystem Object")
TFileStream=TestFile.CreateTextFile("c:\inetpub\ww wroot\ABG_ASP\TestFile.txt")
TFileStream.WriteLine "Welcome to the Zone!"
TFileStream.Close
%>
</body>
</html>
Nov 9 '06 #1
4 7106
sashi
1,754 Expert 1GB
This file is suppose to display "Welcome to the Zone!" and also write it to a text file instead i get an runtime error 0x800A0046 Permission Denied
The Script:

<html>
<title>File Object</title>
<body>
<hr>
<%
set TestFile=Server.CreateObject("Scripting.FileSystem Object")
TFileStream=TestFile.CreateTextFile("c:\inetpub\ww wroot\ABG_ASP\TestFile.txt")
TFileStream.WriteLine "Welcome to the Zone!"
TFileStream.Close
%>
</body>
</html>
Hi there,

Please enable the script execute exclusive permission under the IIS property section. Good luck & take care.
Nov 10 '06 #2
Hey Sashi
Where do I go to enable the script execute exclusive permission under the IIS property section. Did not find it under the windows components IIS wizard.

Instruction Please
Nov 10 '06 #3
Let me see if I can help with your problem, sometimes the problem is in the users account of your pc, some access to that file maybe disabled.

1st right click your folder where the files reside, then click properties.
If you don't see the "Security tab", follow the instructons below:

Open any "My Computer",
Click "Tools" in the menu,
Click "Folder Options..."
Click "View Tab"
Scroll down until you see "Use Simple File Sharing(Recommended)"
Uncheck "Use Simple File Sharing(Recommended)"
Apply
then Ok
---
right click your folder where the files reside again,
then click properties.
"Security tab" should now be enable

Just check all for the account user that you uses to run the program
Your program should work fine now :)
Nov 11 '06 #4
Thanx that provided some progress.
Thats good, but when I run it, it creates the file TestFile ine the specified folder but it comes up empty in the folder and also produces this error on the page.

Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'TFileStream'
/ABG_ASP/firstfile.asp, line 8

Again the script is:

<html>
<title>Working with the File Object</title>
<body>
<b>This is a first example of working with the File object!</b>
<hr>
<%
set TestFile=Server.CreateObject("Scripting.FileSystem Object")
TFileStream=TestFile.CreateTextFile("c:\inetpub\ww wroot\ABG_ASP\TestFile.txt")
TFileStream.WriteLine "Welcome to the File Object in ASP!"
TFileStream.Close
%>
</body>
</html>
Nov 12 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Hudson | last post by:
Hi, I have just recently build python 2.3.3 on an AIX 5.2 version using gcc v3.3.2 (i built python as root and installed gcc from a rpm file). When we run any python script as root they work. ...
3
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application...
1
by: Elie Grouchko | last post by:
Hi I am trying to shutdown a COM+ application from an ASP page implemented using VBScript. I get: Err.Number=0x46 Err.Source=Microsoft VBScript runtime error Err.Description=Permission...
2
by: dx27s | last post by:
Hi all, I'm working with the XMLHttpRequest object. I receive the following error message: "Permission denied to call method XMLHttpRequest.open" This occurs in Firefox only. IE works fine. ...
12
by: Vlad de Mille IV | last post by:
Well, as the subject says.... Briefly, when I try to run *any* wizard, I get a simple dialog, stating "Permission Denied", to which I can only click "OK". I suspect this is a windows (XP)...
3
by: FD | last post by:
A COM was used in VBscript and worked fine. Now I try to use C# to call it with following code: Type myType = Type.GetTypeFromProgID("MyProgID"); object myObj = Activator.CreateInstance(myType);...
2
by: deko | last post by:
Why am I getting: "Error Number 70: Permission denied" when trying to move a folder with the Microsoft Scripting Runtime? Is there some security setting I don't know about? Platform: Windows...
4
by: Russell Warren | last post by:
I've been having a hard time tracking down a very intermittent problem where I get a "permission denied" error when trying to rename a file to something that has just been deleted (on win32). ...
0
by: shriyer | last post by:
Hey.. , when i try single stepping through the code, after a long time, it abruptly gives the error message .." permission denied ".. ??? what is it for? If i run it without singlestep, it gives...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.