473,387 Members | 1,569 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,387 software developers and data experts.

Access is denied...

I developed a small data-entry ASP.NET app on my workstation (WinXP Pro).
It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on
SERVER1.
I modified the properties in IIS so that it was configured as an
application.
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No
matter what I do I always get the 'Access is denied' error. I am now at a
complete loss as to what to do; nothing appears to make any difference.

I have checked the NTFS permissions for the inetpub folder, the wwwroot
folder, & the TCTracker folder.
I have used FileMon to watch a page request, & Access is not denied!
Any suggestions?
--
Cheers,

James Goodman
Nov 18 '05 #1
8 1623
"James" <jamesATnorton-associates.co.ukREMOVE> wrote in
news:uM*************@TK2MSFTNGP12.phx.gbl:
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No
matter what I do I always get the 'Access is denied' error. I am now at a
complete loss as to what to do; nothing appears to make any difference.


Do you have an Active Directory on your network?

If not, you'll need to add user accounts to SERVER1.

Nov 18 '05 #2
Yes. SERVER1 is also a domain controller...

--
Cheers,

James Goodman
"Anon-E-Moose" <an**********@yahoo.com> wrote in message
news:Xn********************************@140.99.99. 130...
"James" <jamesATnorton-associates.co.ukREMOVE> wrote in
news:uM*************@TK2MSFTNGP12.phx.gbl:
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No matter what I do I always get the 'Access is denied' error. I am now at a complete loss as to what to do; nothing appears to make any difference.


Do you have an Active Directory on your network?

If not, you'll need to add user accounts to SERVER1.

Nov 18 '05 #3
The mystery deepens:

I decided to create a test app, with a single label on it. I did this, &
copied it onto the server. I then set it as an application & left anonymous
access turned on.

I still get the same error...

--
Cheers,

James Goodman
"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:uM*************@TK2MSFTNGP12.phx.gbl...
I developed a small data-entry ASP.NET app on my workstation (WinXP Pro).
It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on
SERVER1.
I modified the properties in IIS so that it was configured as an
application.
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No
matter what I do I always get the 'Access is denied' error. I am now at a
complete loss as to what to do; nothing appears to make any difference.

I have checked the NTFS permissions for the inetpub folder, the wwwroot
folder, & the TCTracker folder.
I have used FileMon to watch a page request, & Access is not denied!
Any suggestions?
--
Cheers,

James Goodman

Nov 18 '05 #4


"James" wrote:
I developed a small data-entry ASP.NET app on my workstation (WinXP Pro).
It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on
SERVER1.
I modified the properties in IIS so that it was configured as an
application.
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No
matter what I do I always get the 'Access is denied' error. I am now at a
complete loss as to what to do; nothing appears to make any difference.

I have checked the NTFS permissions for the inetpub folder, the wwwroot
folder, & the TCTracker folder.
I have used FileMon to watch a page request, & Access is not denied!
Any suggestions?
--
Cheers,

James Goodman

Nov 18 '05 #5
One thought.....

In your web.config file do you have the following: <c>

<identity impersonate="true" /> </c>

I'll be watching this thread carefully, b/c I can't figure out my own "access denied" problem.

"James" wrote:
I developed a small data-entry ASP.NET app on my workstation (WinXP Pro).
It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on
SERVER1.
I modified the properties in IIS so that it was configured as an
application.
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No
matter what I do I always get the 'Access is denied' error. I am now at a
complete loss as to what to do; nothing appears to make any difference.

I have checked the NTFS permissions for the inetpub folder, the wwwroot
folder, & the TCTracker folder.
I have used FileMon to watch a page request, & Access is not denied!
Any suggestions?
--
Cheers,

James Goodman

Nov 18 '05 #6
Yes, identity impersonate is set.

I really am at a loss now, & am beginning to think it might be a more
serious error on the server which will require reinstalling Windows (not a
job I look forward to!)

I am just experimenting on my laptop now, trying to discover what on earth
could be causing it...

--
Cheers,

James Goodman
"DiscalcedMa24" <Di***********@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
One thought.....

In your web.config file do you have the following: <c>

<identity impersonate="true" /> </c>

I'll be watching this thread carefully, b/c I can't figure out my own "access denied" problem.
"James" wrote:
I developed a small data-entry ASP.NET app on my workstation (WinXP Pro). It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on SERVER1.
I modified the properties in IIS so that it was configured as an
application.
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No matter what I do I always get the 'Access is denied' error. I am now at a complete loss as to what to do; nothing appears to make any difference.

I have checked the NTFS permissions for the inetpub folder, the wwwroot
folder, & the TCTracker folder.
I have used FileMon to watch a page request, & Access is not denied!
Any suggestions?
--
Cheers,

James Goodman

Nov 18 '05 #7
To add some more info:

I enabled Failure auditing, & it would appear the IWAM & IUSR users are
reporting a lack of access to the required directories (see this link
http://support.microsoft.com/default...;en-us;811320). However, I
have explicitly enabled access to the folders in question for both of these
users.

Furthermore, if I try it on my laptop (which works) the user which actually
connects to these folders is the ASPNET user...

Strange...

--
Cheers,

James Goodman
"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:uM*************@TK2MSFTNGP12.phx.gbl...
I developed a small data-entry ASP.NET app on my workstation (WinXP Pro).
It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on
SERVER1.
I modified the properties in IIS so that it was configured as an
application.
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No
matter what I do I always get the 'Access is denied' error. I am now at a
complete loss as to what to do; nothing appears to make any difference.

I have checked the NTFS permissions for the inetpub folder, the wwwroot
folder, & the TCTracker folder.
I have used FileMon to watch a page request, & Access is not denied!
Any suggestions?
--
Cheers,

James Goodman

Nov 18 '05 #8
I have now solved it, although I cannot give a cast-iron explanation as to
what was causing it. My best guess is some kind of application corruption.

I set the permissions on the relevant folders correctly, & then copied the
application back into the folder. It then worked first time, both with
anonymous access & with Windows Authentication only...

--
Cheers,

James Goodman
"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:OF**************@TK2MSFTNGP12.phx.gbl...
To add some more info:

I enabled Failure auditing, & it would appear the IWAM & IUSR users are
reporting a lack of access to the required directories (see this link
http://support.microsoft.com/default...;en-us;811320). However, I have explicitly enabled access to the folders in question for both of these users.

Furthermore, if I try it on my laptop (which works) the user which actually connects to these folders is the ASPNET user...

Strange...

--
Cheers,

James Goodman
"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:uM*************@TK2MSFTNGP12.phx.gbl...
I developed a small data-entry ASP.NET app on my workstation (WinXP Pro). It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on SERVER1.
I modified the properties in IIS so that it was configured as an
application.
For Directory Security, only Windows Authentication is allowed.

I then attempted to load it, from both SERVER1, & from my workstation. No matter what I do I always get the 'Access is denied' error. I am now at a complete loss as to what to do; nothing appears to make any difference.

I have checked the NTFS permissions for the inetpub folder, the wwwroot
folder, & the TCTracker folder.
I have used FileMon to watch a page request, & Access is not denied!
Any suggestions?
--
Cheers,

James Goodman


Nov 18 '05 #9

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

Similar topics

2
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what...
0
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
16
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.