473,396 Members | 2,029 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,396 software developers and data experts.

Can I Have Your Permission Please?


Hi,

Apparently, I have a permissions issue. I am logged in as administrator,
and my C: drive is accessible. Under the "Security" tab for Properties
for Inetpub, for my "Internet Guest Account," the "Allow" boxes
for [read & execute],[list folder contents], and [Read] are checked
- BUT they are greyed out - I cannot clear them - and nothing else
is checked.

Now that I look further, the same thing is the case for every folder
in the root that I examined.

I'm a newbie starting up with ASP.NET,
and I'm getting off to a wonderful start
- and when I tell you "wonderful" I'm being sarcastic.

My OS is Win 2000 SP4.

I've gotten IIS installed, along with the .NET framework.

I have the .NET Framework 1.1 configuration tool in Administrative tools,
along with the Wizards. I have opened the configuration tool,
but I have no idea as to what I'm looking at.

My code is about as simple as it can get:
===============================================
<%@ Page Language="C#" %>

<script runat="server">
void page_load(object obj, EventArgs e)
{ lblMessage.Text = "Hello World";
}
</script>

<html><body>
<asp:Label id="lblMessage" runat="server"/>
</body></html>
===============================================

... right from the book.

I put the file into my webroot directory:
C:\Inetpub\wwwroot\

... and this URL into the IE6 address bar:
http://localhost/HelloWorld01.aspx

When I hit "GO" I get the following error message:
================================================== =================

Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error
and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access application
directory 'c:\inetpub\wwwroot\'. The directory does not exist or is not accessible
because of security settings.
Source Error:

An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:

[HttpException (0x80004005): Server cannot access application directory
'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +983
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

================================================== =================
BEFORE anyone asks, I cleaned out the cash for the browser ...

C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\
(for IE6)

... and it still doesn't work.
So this is going just "wonderfully". :-(
Does anyone know what I can do to solve this permissions issue?
Thanks In Advance!

- wASP
Nov 19 '05 #1
3 1287


Hi again,

I've found the following kb article:
http://support.microsoft.com/kb/316721

I did the following, as instructed by the article:
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::
RESOLUTION
To add read, execute, and list access for the ASPNET account
on the root Web site or on any virtual directory, follow these steps:
1. In Windows Explorer, browse to the folder that contains
the root Web site (which is C:\Inetpub\Wwwroot by default)
or the virtual directory.

2. Right-click the folder, and then click Properties.

3. On the Security tab, click Add.

4. Type ComputerName\ASPNET (for example, on a computer named Webdev,
type Webdev\ASPNET), and then click OK.

5. Allow the following permissions for the ASPNET account:
• Read & Execute
• List Folder Contents
• Read

6. Click OK to close the Properties dialog box and to save the changes.
NOTE: You do not need to perform these steps if the Everyone group or the
Users group has read access to the root Web site or virtual directory.
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::

What happens now, when I load the address in the address bar of IE6
(http://localhost/HelloWorld01.aspx), then click on GO,
I get a box prompting me for a username, password, and domain.

This is progress - I think - but what do I do to get it to stop
prompting me for this and execute the friggin' code?
Thanks In Advance!

-wASP
================================================== =====================

On Sun, 10 Jul 2005 01:26:46 -0500, wASP <wylbur[at]ev1[dot]net> wrote:

Hi,

Apparently, I have a permissions issue. I am logged in as administrator,
and my C: drive is accessible. Under the "Security" tab for Properties
for Inetpub, for my "Internet Guest Account," the "Allow" boxes
for [read & execute],[list folder contents], and [Read] are checked
- BUT they are greyed out - I cannot clear them - and nothing else
is checked.

Now that I look further, the same thing is the case for every folder
in the root that I examined.

I'm a newbie starting up with ASP.NET,
and I'm getting off to a wonderful start
- and when I tell you "wonderful" I'm being sarcastic.

My OS is Win 2000 SP4.

I've gotten IIS installed, along with the .NET framework.

I have the .NET Framework 1.1 configuration tool in Administrative tools,
along with the Wizards. I have opened the configuration tool,
but I have no idea as to what I'm looking at.

My code is about as simple as it can get:
===============================================
<%@ Page Language="C#" %>

<script runat="server">
void page_load(object obj, EventArgs e)
{ lblMessage.Text = "Hello World";
}
</script>

<html><body>
<asp:Label id="lblMessage" runat="server"/>
</body></html>
===============================================

... right from the book.

I put the file into my webroot directory:
C:\Inetpub\wwwroot\

... and this URL into the IE6 address bar:
http://localhost/HelloWorld01.aspx

When I hit "GO" I get the following error message:
================================================= ==================

Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error
and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access application
directory 'c:\inetpub\wwwroot\'. The directory does not exist or is not accessible
because of security settings.
Source Error:

An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:

[HttpException (0x80004005): Server cannot access application directory
'c:\inetpub\wwwroot\'.
The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +983
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

================================================= ==================
BEFORE anyone asks, I cleaned out the cash for the browser ...

C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\
(for IE6)

... and it still doesn't work.
So this is going just "wonderfully". :-(
Does anyone know what I can do to solve this permissions issue?
Thanks In Advance!

- wASP


- wASP
Nov 19 '05 #2
wASP <wylbur[at]ev1[dot]net> wrote:
...
What happens now, when I load the address in the address bar of IE6
(http://localhost/HelloWorld01.aspx), then click on GO,
I get a box prompting me for a username, password, and domain.

This is progress - I think - but what do I do to get it to stop
prompting me for this and execute the friggin' code?


Assuming anonymous access is acceptable ....

Right-click "My Computer" and select manage

Navigate to "Services..." ---> "IIS" ---> <your site>

Rightclick <your site> and select properties ....

Click tab: "directory permissions"

Click "edit" button

Remove any ticks (check marks) against the authentication options.

Ensure Anonymous is ticked (checked)
--
William Tasso
Nov 19 '05 #3

On Sun, 10 Jul 2005 18:06:36 +0100, "William Tasso" <sp*********@tbdata.com> wrote:
wASP <wylbur[at]ev1[dot]net> wrote:
...
What happens now, when I load the address in the address bar of IE6
(http://localhost/HelloWorld01.aspx), then click on GO,
I get a box prompting me for a username, password, and domain.

This is progress - I think - but what do I do to get it to stop
prompting me for this and execute the friggin' code?
Assuming anonymous access is acceptable ....

Right-click "My Computer" and select manage

Navigate to "Services..." ---> "IIS" ---> <your site>

Rightclick <your site> and select properties ....

Click tab: "directory permissions"


Actually, it's "directory security" (in Win2k) - but I know what you mean.

Click "edit" button

Remove any ticks (check marks) against the authentication options.

Ensure Anonymous is ticked (checked)

THAT solved it - it's official: You're a genius!
Thank you William Tasso!
- wASP
Nov 19 '05 #4

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

Similar topics

11
by: Wayne Wengert | last post by:
I am using VS.NET 2003, VB.NET, ADO.NET and an Access 2000 database. I want to display a list of all tables in an Access database. I want to put that list of table names in a listbox so the user...
3
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application...
1
by: Benny | last post by:
Dear All, My ASP-MS Access application works fin in our local server and in our hosting I get this errors, while adding/editing or deleteing. When deleting a product: error Microsoft VBScript...
1
by: CSN | last post by:
I upgraded to 7.4 a few days ago and am getting these errors when importing dumps: "permission denied to set session authority" and "permission denied for schema public". Not all of the dump is...
10
by: Florian G. Pflug | last post by:
Hi I installed a postgres-application (which was developed on debian woody) on red hat 9 today, using the postgres 7.3 rpms from redhad. One of my the triggers uses the pg_settings table (more...
0
by: David Hodges | last post by:
After installing the service packs from Framework 1.0 and 1.1 on my W2k web server I get the above error on all applications. I am at my wits end and finding nothing on Google that helps. Here...
0
by: Brian Takita | last post by:
Hello, I'm getting the following error at the end of this message when trying to run the ReportManager and the ReportServer: Assembly system.data.dll security permission grant set is...
0
by: Rain | last post by:
Hi, i only need to make the scoket access unrestricted and nothing else. How do i do this in an xml which i will be using in adding a permission set using caspol? <PermissionSet...
2
by: AnalogKid17 | last post by:
Keywords: ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a WinXP Box I've betting the following for days... it's driving me insane: Server Error in '/' Application. ...
1
by: Michael Tissington | last post by:
How can I enable execute permissions for a folder on my website using the web.config file ?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.