Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Ugghh Permission Denied error!
Old 08-30-2006, 03:20 PM Ugghh Permission Denied error!
blelisa's Avatar
Experienced Talker

Posts: 45
Location: Western New York
Trades: 0
Hello all,

Can anyone see what I am going wrong? I have contacted my web hoster and they insist all files are Readable/Writable, yet I am still getting this error whenever I try to enter info into my form.:

Microsoft VBScript runtime error '800a0046'

Permission denied

/license_action.asp, line 7


Here is my code for my form:
Code:
<html>
<head>
<title>Form for License Generator</title>
</head>
<body>
<form name="license_input" method="post" action="license_action.asp">
Temp ID<input name="tempid" type="textarea"></br>
encyyMessage<input name="encmsg" type="textarea"></br>
start_date<input name="stdate" type="textarea"></br>
genac<input name="genac" type="textarea"></br>
genac_exp_date<input name="genexpdate" type="textarea"></br>
genac_access<input name="genaccess" type="textarea"></br>
bldc<input name="bldc" type="textarea"></br>
bldc_exp_date<input name="bldcexpdate" type="textarea"></br>
bldc_access<input name="bldcaccess" type="textarea"></br>
bcpm<input name="bcpm" type="textarea"></br>
bcpm_exp_date<input name="bcpmexpdate" type="textarea"></br>
bcpm_access<input name="bcpmaccess" type="textarea"></br>
indu<input name="indu" type="textarea"></br>
indu_exp_date<input name="induexpdate" type="textarea"></br>
indu_access<input name="induaccess" type="textarea"></br>
<input type="submit" name="cmdsubmit" value="Submit">
</form>
</body>
</html>
Here is my code for my license_action where the error originates from
Code:
<%

Dim fso
Dim tst

Set fso=Server.CreateObject("Scripting.FileSystemObject")
Set tst=fso.OpenTextFile("D:\data\websites\clients\magneforcess\reading.txt", 2, true)

tst.writeline "temporary id = " & Request.Form("tempid")
tst.writeline "encyyMessage = " & Request.Form("encmsg")
tst.writeline "start_date = " & Request.Form("stdate")
tst.writeline "genac = " & Request.Form("genac")
tst.writeline "genac_exp_date = " & Request.Form("genexpdate")
tst.writeline "genac_access = " & Request.Form("genaccess")
tst.writeline "bldc = " & Request.Form("bldc")
tst.writeline "bldc_exp_date = " & Request.Form("bldcexpdate")
tst.writeline "bldc_access = " & Request.Form("bldcaccess")
tst.writeline "bcpm = " & Request.Form("bcpm")
tst.writeline "bcpm_exp_date = " & Request.Form("bcpmexpdate")
tst.writeline "bcpm_access = " & Request.Form("bcpmaccess")
tst.writeline "indu = " & Request.Form("indu")
tst.writeline "indu_exp_date = " & Request.Form("induexpdate")
tst.writeline "indu_access = " & Request.Form("induaccess")

tst.close
Set tst = Nothing
Set fso = Nothing


 if err<>0 then 
    Response.Write(Err.Description) 
  else 
    response.redirect("http://WWW.U2.COM") 
end if

%>
This is just driving me crazy!
blelisa is offline
Reply With Quote
View Public Profile Visit blelisa's homepage!
 
 
Register now for full access!
Old 08-30-2006, 03:44 PM Re: Ugghh Permission Denied error!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
is the hard coded path you are using correct and accessible to the IIS username??

try using
Code:
 Set tst=fso.OpenTextFile(server.mappath("\reading.txt"), 2, true)
instead

Provided the text file is in the root folder of course.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Ugghh Permission Denied error!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12706 seconds with 12 queries