943,891 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 3193
  • ASP RSS
Jun 9th, 2007
0

permission denied error

Expand Post »
i am doing a small program to create the new text file and insert
data to it , but this new created file not in the server it has to be created
in one of the machines in the network
my code is as the following

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
'set f=fs.CreateTextFile("d:\uploaded_files\newswitch.txt",true)
set f=fs.CreateTextFile("<A href="file://\\172.31.224.99\uploaded_files\newswitch.txt",true">\\172.31.224.99\uploaded_files\newswitch.txt",true)
f.WriteLine("Hello World!")
f.close
set f=nothing
set fs=nothing

%>

but the error indicates that the permission denied , inspite that "uploaded_files"
folder is shared and allow access with read, wirte permissions to "Every One"
not that if i tried to created it in the server then no problem in that as
u can check that by commenting the line 7 and uncommenting the line 6
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anitha2324 is offline Offline
11 posts
since Mar 2007
Jun 9th, 2007
0

Re: permission denied error

please check the above attachment file it is my asp file
Attached Files
File Type: zip create.zip (354 Bytes, 37 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anitha2324 is offline Offline
11 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: How can i display my search result data in tabular form?
Next Thread in ASP Forum Timeline: open search result in text file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC