473,569 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(objec t 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\wwwr oot\

... 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\www root\'.
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.Http Exception: Server cannot access application
directory 'c:\inetpub\www root\'. 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\www root\'.
The directory does not exist or is not accessible because of security settings.]
System.Web.Http Runtime.EnsureA ccessToApplicat ionDirectory() +72
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +983
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032

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

C:\Documents and Settings\Admini strator\Local Settings\Tempor ary Internet Files\
(for IE6)

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

- wASP
Nov 19 '05 #1
3 1309


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\Wwwr oot 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\AS PNET (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(objec t 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\www root\

... 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\www root\'.
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.Http Exception: Server cannot access application
directory 'c:\inetpub\www root\'. 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\ww wroot\'.
The directory does not exist or is not accessible because of security settings.]
System.Web.Http Runtime.EnsureA ccessToApplicat ionDirectory() +72
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +983
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.43 22.2032

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

C:\Documents and Settings\Admini strator\Local Settings\Tempor ary Internet Files\
(for IE6)

... and it still doesn't work.
So this is going just "wonderfull y". :-(
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*********@tb data.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
4401
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 can select the table they want to use. How can I do this? -- ------------------------------------ Wayne Wengert wayne@wengert.org
3
19143
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 Event log. My environment: Windows Server 2003, IIS 6, WSH, Classic ASP, Vbscript Below is the code and the error: Code:
1
2317
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 runtime error '800a0046' Permission denied /webadmin/Products.asp, line 27 When deleting an image from a product: error Microsoft VBScript runtime...
1
1992
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 imported successfully. Are these errors due to new features in 7.4? Do I need to add more permissions for users? __________________________________...
10
4561
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 precisely, it updates that table to change the search_path temporarily). With the postgres 7.3 (and 7.4 too) installed on my debian development...
0
1411
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 is the complete error: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To...
0
1757
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 incompatible between appdomains. I had to apply KB 887787 (http://support.microsoft.com/?kbid=887787) to fix my previous error, which stated... Assembly...
0
1066
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 class="System.Security.NamedPermissionSet" version="1"> <Permission class="System.Net.SocketPermissionAttribute, mscorlib, Ver=2000.14.1812.10, SN=03689116d3a4ae33"...
2
20816
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. Security Exception Description: The application attempted to perform an operation not
1
3421
by: Michael Tissington | last post by:
How can I enable execute permissions for a folder on my website using the web.config file ?
0
7700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.