M
MikeV06
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 default web page settings and the ntfs setting for
counter.txt. Could someone please point me to the correct IIS server
configuration settings and ntfs setting 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.
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. Could someone please point me to the correct IIS server
configuration settings and ntfs setting 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.