Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run time error on asp 1

Status
Not open for further replies.

jfdabiri

MIS
Feb 27, 2007
282
US
hi,
i have an asp/vbscript page that's a menu for selecting reports. i have a text file that's updated each time the page is accessed (sort of like a home made visitor counter). i can read from this text file, but when i try to write to it, i get this error:
Microsoft VBScript runtime error '800a0046'
Permission denied
/custom_apps/facility_stats_menu.asp, line 27

the code is in inetpub\ and the text file is there also.
is there something i need to set somewhere to make the server let this page modify the text file?
thanks.
 
Remember that there are 2 types of file permissions: those maintained by IIS and those maintained by the underlying windows operating system.

My first guess is that the account used by IIS to execute your ASP currently has read-only permission from the operating system for the “counter file.” If the default permissions have not been changed then you’ll be looking for what is granted to the IUSR_<MachineName> account by right-clicking the counter file and checking the security.
 
thanks sheco.
the problem was on the security tab of the counter file. once i fixed to read and write, it worked like a charm.
thanks so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top