473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

CTL_E_PERMISSIONDENIED ??

IIS 6 on Win2003 with Net 2.0

I have just started trying to learn asp. As my first attempt, I copied some
example asp 101 code that supposedly will create a hit counter.

I am getting an exception trying to run a simple aspx page. This is causing
the error: objCount = objFSO.CreateTextFile("counter.txt", True). I have
gone through my default web page settings and the ntfs setting for
counter.txt. I gave network service modify, write, read, execute
permissions and it did not work. Just to make sure it was not a ntfs issue,
I added everyone with full control, but still it does not work. Could
someone please point me to the correct IIS server configuration settings,
ntfs setting, and asp settings so that I can run this page (and many
others). Thanks.
Server Error in '/' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

Exception Details: System.Security.SecurityException: Exception from
HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)
Source File: c:\inetpub\wwwroot\hitit.aspx Line: 27

Source Error:
Line 25: visitorcount = visitorcount + 1
Line 26: objCount.close
Line 27: objCount = objFSO.CreateTextFile("counter.txt", True)
Line 28: objCount.WriteLine(visitorcount)
Line 29: end if

I have a web.config file in the web root directory that says:

<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="hitit.aspx" value="full" />
</appSettings>
</configuration>

I have dug through help files until I am about blind. Is this the correct
syntax? It does not work with this?

Thanks.
Apr 6 '06 #1
0 1169

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

Similar topics

4
by: Tony | last post by:
I am trying (unsuccessfully) to open a file using fso.OpenTextFile. I have given Full Trust to the assembly in Code Groups and Assembly Trust. I have added IUSR and IWAM as users. I have checked...
3
by: Jennifer | last post by:
On an ASP page I've got some code that is supposed to "export" data in a grid to an Excel file. What I'm doing is writing all the data to a text file, separating the fields by commas. Then I'll...
7
by: yoshitha | last post by:
Hi, In my application am using scrrun.dll to create files and folders and also to copy the files from one folder to another folder. Using my application i created 2 folders for eg folder1 and...
3
by: Brett | last post by:
I've compiled a DLL which is being called from a different project. The following code is from the DLL. When I run the WriteToFile sub the second time from the spawning project, I get the error...
2
by: MikeV06 | last post by:
IIS 6 on Win2003 with Net 2.0 I am getting an exception trying to run a simple aspx page. This is causing the error: objCount = objFSO.CreateTextFile("counter.txt", True). I have gone through my...
3
by: doomster | last post by:
Hi, Recently we upgraded our Windows 2000 servers to Windows 2003. One of our websites which was working fine previouslyis now displaying ... 'Server Error in '/' Application' along with with...
4
by: bjh652174 | last post by:
Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.