Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 2nd, 2004, 12:02 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default ASP.net on ADS Domain Controller not working

In my home network, I have a Windows 2000 Advanced Server with .net 1.1. I recently reconfigured the box to act as a domain controller for an Active directory services tree. Since then, I've been unable to run ASP.net applications due to a security problem. I get an error like this:
Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET Files\root\9c4ac7bd\97d3c1c0\global.asax.xml" is denied.
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.UnauthorizedAccessException: Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET Files\root\9c4ac7bd\97d3c1c0\global.asax.xml" is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.


Now, I know that this it probably being caused by permissions on the directory because of the changes I made, but I'm not sure what I can do to fix it. I checked the file system permissions on "Temporary ASP.NET Files" and I did NOT see the {machine}\ASPNET account listed. So I added it with full control. I also added in the IUSR_MACHINENAME account with full control (to cover the impersonation possibility even though I know I'm not using that). In both cases, I checked the box to reset all child object's permissions and allow parental permission propagation. After and IISRESET, no luck.

Anyone have any ideas? I vaguely remember hearing something about problems with running asp.net on a active directory domain controller, but I can't remember what/where it was. Been looking around and can't find anything yet.
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
 
Old January 2nd, 2004, 12:16 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Peter,

I think what you're referring to is this article: http://support.microsoft.com/default...en-us%3B315158

By default, ASP.NET looks for a local ASPNET account. However, by promoting your machine to a PDC, all accounts are now domain accounts.

The odd thing is, the article says the problem does no longer occur in ASP.NET 1.1.

You may want to take a look at the password for the ASP account under the processModel node in your Machine.config file. It should be set to autogenerate (on a machine that is not a PDC).....


Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 2nd, 2004, 02:57 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Ok, I got it working now. I added the IWAM_ account to the directory (and actually removed IUSR_ and ASPNET) and it's working now. I didn't realize they changed the account! Thanks.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old February 10th, 2005, 11:36 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am having the same problem. Could you be more specific about how you fixed it? When you say you added the IWAN_MachineName account to the directory what exactly do you mean? I see that account in my directory already?

Thanks for any feedback.








Similar Threads
Thread Thread Starter Forum Replies Last Post
subreports not working in ASP.NET zothen123 Crystal Reports 2 August 15th, 2005 03:31 PM
ASP.Net not working astronaut_10 ASP.NET 1.0 and 1.1 Basics 1 August 27th, 2004 02:50 AM
ASP.NEt, creating new user on Windows 2000 Domain sstoutkc Classic ASP Components 2 April 29th, 2004 06:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.