Wrox Programmer Forums
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 April 15th, 2004, 08:33 AM
Registered User
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access is denied - run on Win Server 2003

Access 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.ComponentModel.Win32Exception: Access is denied

Source Error:

Line 31: EventLog.CreateEventSource("ThePhile.COM", "Application");
Line 32: }
Line 33: EventLog.WriteEntry("ThePhile.COM", message, entryType);
Line 34: }
Line 35:

Source File: E:\wrox\ThePhile\PhilePage.cs Line: 33
Old April 15th, 2004, 09:31 AM
Authorized User
Join Date: Nov 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts

Looks like a security issue - the ASPNET account must have rights to the Event log

Old April 15th, 2004, 09:42 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Yep, this is indeed a security issue. With early betas of .NET the account ASP.NET was using had sufficient permissions to create new Event Logs and sources at run-time. However, this is no longer possible.

Check out these threads for more info:



Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Thieves Like Us by New Order (Track 6 from the album: Substance - Disc 1)

Old April 15th, 2004, 05:50 PM
Registered User
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

:( I add permission for ASPNET on Windows/Temp, it doesn't work

But, I add Everyone and also IWAM_COMPUTER


This book is not easy to understand. Oop is tough.

Similar Threads
Thread Thread Starter Forum Replies Last Post
-2147024769 Automation Error on MS Win Server 2003 NeilSc Pro VB 6 2 May 10th, 2007 08:07 AM
unidcode utf-8 in iis 6.0 win server 2003 cyus Classic ASP Components 0 September 22nd, 2005 04:45 AM
win server 2003 problem slavni Classic ASP Databases 6 April 13th, 2005 03:32 AM
Sending email on win 2003 server md_haris VBScript 3 October 21st, 2004 12:20 PM
Unable to login running on win server 2003 kiekar BOOK: ASP.NET Website Programming Problem-Design-Solution 2 May 6th, 2004 09:28 PM

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