Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-02-2007, 01:15 AM   #1 (permalink)
Broken In
 
evil_maverick's Avatar
 
Join Date: Dec 2005
Location: kolkata
Posts: 114
Default Plz Help!! Prob With Asp!!


hello ppl
am new to asp!!
and i was doing some asp prgmin (i hv win xp pro installed)
but i am getting this err -->
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/MyWeb/cnt.asp, line 8


whenever am trying to run my application!!
plz help!!

i hv saved the following under wwwroot/MyWeb
and the name of the file is cnt.asp
code for the application--:
<%
Set FS=Server.CreateObject("Scripting.FileSystemObject ")
Set RS=FS.OpenTextFile(Server.MapPath("counter.txt"),1 ,False)
fcount=RS.ReadLine
RS.Close
fcount=fcount+1
Set RS=FS.openTextFile(Server.MapPath("counter.txt"),2 ,False)
RS.Write fcount
RS.CLose

Set RS=Nothing
Set FS=Nothing

%>

<html>
<body>
<p>
cnt=<%=fcount%>
</p>
</body>
</html>
__________________
In the pocket - Samsung Wave S8500 : Bada 1.2
In the Bag - HP DV6-6017TX
At home - Samsung 20'' Since 2001 :D :-P
evil_maverick is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-02-2007, 10:52 AM   #2 (permalink)
Beware of the innocent
 
ilugd's Avatar
 
Join Date: Dec 2005
Posts: 1,024
Default Re: Plz Help!! Prob With Asp!!

something seems to be wrong in the line
Code:
Set RS=FS.openTextFile(Server.MapPath("counter.txt"),2 ,False)
but on a side note, is it RS.Write fcount or RS.WriteLine fcount?
__________________
Life is too short. Have fun.
ilugd is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On


 
Latest Threads
- by topgear
- by abhidev
- by clmlbx
- by Sarath

Advertisement




All times are GMT +5.5. The time now is 04:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2