Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > writeline permission denied

Reply
Thread Tools

writeline permission denied

 
 
Dodo
Guest
Posts: n/a
 
      10-21-2003
I'm trying to append to a file a string such as the following: 127599.0
127838.5 14.434 87

first error - 500 internal server error
refresh
second error - echoes string...does not append file
refresh
third error - permission denied

Any ideas greatly appreciated!

<%set
file=server.createobject("scripting.filesystemobje ct").opentextfile(server.m
appath("mpg.txt"),
file.writeline(request.querystring("start")&"
"&request.querystring("finish")&" "&request.querystring("gallons")&"
"&request.querystring("octane"))
file.close%>




 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      10-21-2003
Does IUSR_machineName have NTFS permissions to write to this file?

Also read here. http://www.aspfaq.com/2109

Ray at work

"Dodo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm trying to append to a file a string such as the following: 127599.0
> 127838.5 14.434 87
>
> first error - 500 internal server error
> refresh
> second error - echoes string...does not append file
> refresh
> third error - permission denied
>
> Any ideas greatly appreciated!
>
> <%set
>

file=server.createobject("scripting.filesystemobje ct").opentextfile(server.m
> appath("mpg.txt"),
> file.writeline(request.querystring("start")&"
> "&request.querystring("finish")&" "&request.querystring("gallons")&"
> "&request.querystring("octane"))
> file.close%>
>
>
>
>



 
Reply With Quote
 
 
 
 
Dodo
Guest
Posts: n/a
 
      10-21-2003
that worked...thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {555F3418-D99E-4E51-800A-6E89CFD8B1D7} to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19). Skybuck Flying Windows 64bit 1 06-29-2009 06:17 PM
StreamWriter.Write or WriteLine causes Session_End xuxu ASP .Net 5 01-17-2006 03:00 PM
Debug.WriteLine and Trace.WriteLine from class. xxx@hotmail.com ASP .Net 1 09-01-2005 01:56 PM
System.Diagnostics.Debug.WriteLine A.M ASP .Net 4 04-19-2004 03:06 AM
Cannot use "Console.WriteLine" Grey ASP .Net 1 04-13-2004 05:21 AM



Advertisments