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

Access Is Denied...

Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather than
a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman

Nov 18 '05 #1
11 1589
Hi,

does the ASPNET account (which is used by the aspnet_wp.exe worker process)
has enough access permission on your new server. As your windows app is
working perfectly, it seems it is not a .net framework issue but an issue
with ASP .NET itself.

Let me know if it worked.

Thanks
Joyjit

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather than a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman


Nov 18 '05 #2
It is not running under the ASPNET account, as it uses identity impersonate.

To ensure it is not permissions, the everyone group has full control.

--
James Goodman

"Joyjit Mukherjee" <jo**************@hotmail.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
Hi,

does the ASPNET account (which is used by the aspnet_wp.exe worker
process)
has enough access permission on your new server. As your windows app is
working perfectly, it seems it is not a .net framework issue but an issue
with ASP .NET itself.

Let me know if it worked.

Thanks
Joyjit

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using
the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather

than
a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman



Nov 18 '05 #3
I noticed you are using a DC. Could be :
http://msdn.microsoft.com/library/de...et_on_a_dc.asp

Patrice

--

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> a écrit dans le
message de news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather than a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman


Nov 18 '05 #4
Does it show as access denied to the user loged in? If that's the case, let
me know, because it is bug with microsoft, which will send you the address to
the solution - I sweat this for a month and no one could tell me the
solution. Will go look for the address for you....

"James Goodman" wrote:
It is not running under the ASPNET account, as it uses identity impersonate.

To ensure it is not permissions, the everyone group has full control.

--
James Goodman

"Joyjit Mukherjee" <jo**************@hotmail.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
Hi,

does the ASPNET account (which is used by the aspnet_wp.exe worker
process)
has enough access permission on your new server. As your windows app is
working perfectly, it seems it is not a .net framework issue but an issue
with ASP .NET itself.

Let me know if it worked.

Thanks
Joyjit

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using
the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather

than
a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman




Nov 18 '05 #5
Yes it does. However, the very same user can view the files through a shared
folder...

--
James Goodman

"Reza Solouki" <Re*********@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
Does it show as access denied to the user loged in? If that's the case,
let
me know, because it is bug with microsoft, which will send you the address
to
the solution - I sweat this for a month and no one could tell me the
solution. Will go look for the address for you....

"James Goodman" wrote:
It is not running under the ASPNET account, as it uses identity
impersonate.

To ensure it is not permissions, the everyone group has full control.

--
James Goodman

"Joyjit Mukherjee" <jo**************@hotmail.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
> Hi,
>
> does the ASPNET account (which is used by the aspnet_wp.exe worker
> process)
> has enough access permission on your new server. As your windows app is
> working perfectly, it seems it is not a .net framework issue but an
> issue
> with ASP .NET itself.
>
> Let me know if it worked.
>
> Thanks
> Joyjit
>
> "James Goodman" <ja***@norton-REMOVEassociates.co.uk> wrote in message
> news:%2****************@TK2MSFTNGP09.phx.gbl...
>> Ok, I had an ASP.NET application which after much trouble worked on a
>> server, SERVER1. I need to move this application to another server,
>> DC2.
>>
>> Both are domain controllers, both are running the same OS, SP etc.
>>
>> The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.
>>
>> I tried manually copying the files to the new server, as well as using
>> the
>> copy project command inside VS.NET 2003. Both succeed.
>>
>> When I attempt to load an aspx page I get 'Access Is Denied.'
>>
>> I have enabled object access auditing & no accesses are logged in the
>> application directory (neither succeed or fail).
>>
>> To test, I created a standard WebApplication1 application which
>> printed
>> Environ("UserName") to a label control. This worked as expected.
>>
>> I therefore suspect it is some kind of fault in the application
>> (rather
> than
>> a true permission denied error which should be logged?).
>>
>> Any suggestions???
>>
>>
>>
>> --
>> James Goodman
>>
>>
>>
>>
>>
>
>


Nov 18 '05 #6
I have encountered that problem before. I have configured the machine.config
to use the SYSTEM Account but it still makes no difference...
--
James Goodman

"Patrice" <no****@nowhere.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
I noticed you are using a DC. Could be :
http://msdn.microsoft.com/library/de...et_on_a_dc.asp

Patrice

--

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> a écrit dans le
message de news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using
the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather

than
a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman



Nov 18 '05 #7
Ok, I have now isolated it to the identity impersonate section of the
web.config file.

If I clear this option, my app fails, but only due to the IWAM user not
having access to my DB.

If I keep this option I get 'access is denied'

Any further suggestions?

--
James Goodman

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather
than a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman


Nov 18 '05 #8
If I remember user accounts are not allowed to open a session on a DC. Maybe
worth to give this a try (you should be able to change this in the security
policy admin tool) ?

Patrice

--

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> a écrit dans le
message de news:%2****************@tk2msftngp13.phx.gbl...
Ok, I have now isolated it to the identity impersonate section of the
web.config file.

If I clear this option, my app fails, but only due to the IWAM user not
having access to my DB.

If I keep this option I get 'access is denied'

Any further suggestions?

--
James Goodman

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using the copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather
than a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman



Nov 18 '05 #9
Found the solution. I knew I had encountered this before but couldnt
remember the fix!

The problem was that the IWAM account was not allowed to impersonate a
client after authentication.
http://support.microsoft.com/default...b;en-us;824308

--
James Goodman

"James Goodman" <ja***@norton-REMOVEassociates.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.

Both are domain controllers, both are running the same OS, SP etc.

The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.

I tried manually copying the files to the new server, as well as using the
copy project command inside VS.NET 2003. Both succeed.

When I attempt to load an aspx page I get 'Access Is Denied.'

I have enabled object access auditing & no accesses are logged in the
application directory (neither succeed or fail).

To test, I created a standard WebApplication1 application which printed
Environ("UserName") to a label control. This worked as expected.

I therefore suspect it is some kind of fault in the application (rather
than a true permission denied error which should be logged?).

Any suggestions???

--
James Goodman


Nov 18 '05 #10
You are using impersonation but letting anonymous users in?
Have you tried <deny users="?"/> in the <authorization> section.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 24 Nov 2004 13:55:39 -0000, "James Goodman"
<ja***@norton-REMOVEassociates.co.uk> wrote:
Ok, I have now isolated it to the identity impersonate section of the
web.config file.

If I clear this option, my app fails, but only due to the IWAM user not
having access to my DB.

If I keep this option I get 'access is denied'

Any further suggestions?


Nov 18 '05 #11
Hi James:

You might want to reconsider your setup as you seem to be breaking a
good many best practice rules. Running as SYSTEM and elevating the
privileges of the anon user are both risky and only provide more
opportunity for someone with malicious intent. Particularly on a DC!

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 24 Nov 2004 14:18:25 -0000, "James Goodman"
<ja***@norton-REMOVEassociates.co.uk> wrote:
Found the solution. I knew I had encountered this before but couldnt
remember the fix!

The problem was that the IWAM account was not allowed to impersonate a
client after authentication.
http://support.microsoft.com/default...b;en-us;824308


Nov 18 '05 #12

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: 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
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
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...

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.