473,549 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 70 : access denied


Hello,

Please anybody try to execute this code. I am having a "quick.html " with
email Id and name etc..., and henext form is the below "gdform.asp ".

When i try to execute this i am getting the following error. Error 70 :
Access Denied.

Please anybody can help me.

Thanks in advance.
<%

Dim landing_page, host_url
Dim fso, outfile, filename, dirname, myFolder
Dim req_method, key, value1
Dim bErr, errStr, bEmpty
On Error resume next
bErr = false
bEmpty = true
errStr = ""
Set fso = Server.CreateOb ject("Scripting .FileSystemObje ct")

host_url = Request.ServerV ariables("HTTP_ HOST")
response.write( host_url)

req_method = Request.ServerV ariables("REQUE ST_METHOD")
dtNow = Now()
filename = Server.MapPath( "ssfm")
dirname = filename
filename = filename & "\gdform_" & DatePart("M", dtNow) & DatePart("D",
dtNow) & DatePart("YYYY" , dtNow) & DatePart("N", dtNow) & DatePart("S",
dtNow)

response.write( req_method)
response.write( dtnow)
response.write( filename)
response.write( dirname)

sub FormatVariableL ine(byval var_name, byVal var_value)
Dim tmpStr
tmpStr = tmpStr & "<GDFORM_VARIAB LE NAME=" & var_name & " START>" & vbCRLF
tmpStr = tmpStr & var_value & vbCRLF
tmpStr = tmpStr & "<GDFORM_VARIAB LE NAME=" & var_name & " END>"
FormatVariableL ine = tmpStr
end sub

Sub OutputLine(byVa l line)
outfile.WriteLi ne(line)
end sub

if err.number = 0 then
response.Write( "<brError :" & err.number &"::"&err.descr iption & filename)
Set outfile = fso.CreateTextF ile(filename, true)
response.Write( filename)
if err.number <0 then
bErr = true
response.Write( "<brError :" & err.number &"::"&err.descr iption)
errStr = "Error creating file! Directory may not be writable or may not
exist.<br>Unabl e to process request."
else
response.write( "gaffar")
if(req_method = "GET") then
for each Item in request.QuerySt ring
if item <"" then
bEmpty = false
key = item
value1 = Request.QuerySt ring(item)
if(lcase(key) = "redirect") then
landing_page = value1
else
line = FormatVariableL ine(key, value1)
Call OutputLine(line )
end if
end if
next
elseif (req_method = "POST") then
for each Item in request.form
if item <"" then
bEmpty = false
key = item
value1 = Request.form(it em)
if(lcase(key) = "redirect") then
landing_page = value1
else
line = FormatVariableL ine(key, value1)
Call OutputLine(line )
end if
end if
next
end if
outfile.close
end if
if(bEmpty = true) AND errStr = "" then
bErr = true
errStr = errStr & "<br>No variables sent to form! Unable to process
request."
end if
if(bErr = false) then
if (landing_page <"") then
response.Redire ct "http://" & host_url & "/" & landing_page
else
response.Redire ct "http://" & host_url
end if
else
Response.Write errStr
end if
set fso = nothing
else
Response.Write " An Error Occurred creating mail message. Unable to
process form request at this time."
end if
%>
Sep 5 '06 #1
1 4572
Shun wrote:
When i try to execute this i am getting the following error.
Error 70 : Access Denied.
You don't state which line the error occurs on, so I will guess. It has to
be one of these:
Set fso = Server.CreateOb ject("Scripting .FileSystemObje ct")
filename = Server.MapPath( "ssfm")
outfile.WriteLi ne(line)
Set outfile = fso.CreateTextF ile(filename, true)
outfile.close
In all likelihood, you need to grant some file-level permissions to your
SYSTEM or IUSR_xxx account.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Sep 5 '06 #2

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

Similar topics

22
3208
by: James Kupernik | last post by:
Hello everyone! I'm hoping someone can shed some light on my ever daunting mysql/php problem. I'm currently trying to get a new server up and running using apache/php/mysql. Everything runs fine, except every so often (very random) mysql will not autenticate the username and password. Once you hit refresh it goes through fine.
5
2934
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times I try to start to run/debug a project (through Visual Studio) Server Error in '/Intranet' Application. ...
2
2208
by: Ross | last post by:
Hi I have an application using asp.net that I am running on my PC. The web form has a text box where you can enter a name for a new Photo category then click on the button. The code is intended to create a new directory under Photos such as "Relatives".
9
3189
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network...
7
4763
by: Martin Strojek | last post by:
Hi, I have the following problem with developing some web site. I use Visual Studio 2003 to build a website. I tried Windows 2003 Server and switched now back to Windows XP with PWS but the error occurs in both installations. When I do a compile/build of my app and go to the browser and hit reload there comes an error:
0
1587
by: Gururaj Badam | last post by:
I get the following access denied error when i try to export an image Start of Error Message Access Denied. Description: An unhandled exception has occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:...
0
2250
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or updating the code-behind dll) accessing any aspx page in the application causes the application to run for the first time. Some of the initialization...
1
3685
by: lecnac | last post by:
Sorry for the repost. I must have done something wrong when I tried to post my reply (I can't seem to find it). Anyway, I'd really appreciate any help that anyone could provide. My issue is quickly becoming more and more urgent. I've tried the code below using the server's local Administrator user name and password. This gets me...
1
4181
by: Atia Amin | last post by:
Hi, I am a new member. Hello to every one. I am new in ASP.NET area. I wrote an ASP.NET web application which was running ok with my old laptop. Currently I have given a new laptop. Now I copied my application to the new laptop and I am experiencing as SQL Server connection error: "SQL Server does not exist or access denied". Following is a...
2
2049
by: stephen | last post by:
Hi, I am getting an Error "Access to the path...... is denied" Error. I have an web app and I am creating a log file to write the error info. If I have the absolute path "C:\Inetpub\wwwroot\Samples\Test\bin" and write the file there, then it works but if i try another method say "Machinename\path" e.g: \\Stephen\Samples\Test\bin then it...
0
7527
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
7459
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
7726
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. ...
0
7967
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...
1
7485
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
7819
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...
1
5377
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1953
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

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.