Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old May 31st, 2004, 09:47 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to solve "System.Security.SecurityException"

How to solve "System.Security.SecurityException" Disallow the right of interview of a registration form for requesting.
row 27£º protected void LogEvent(string message, EventLogEntryType entryType)
row 28£º {
row 29£º if (!EventLog.SourceExists("ThePhile.COM"))
row 30£º {
row 31£º EventLog.CreateEventSource("ThePhile.COM", "Application");

C:\wrox\ThePhile\PhilePage.cs row: 29


  #2 (permalink)  
Old June 1st, 2004, 07:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your aspnet account doesn't have permission to create an Event Source. If this is for a hosted site, you should change it to log errors to a file, like the VB.NET code download has done.

Or else you can create your own event source outside the application.
See this reference:
http://support.microsoft.com/default...Product=aspnet

Eric


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting System.Security.SecurityException Sunnys ASP.NET 2.0 Professional 0 March 14th, 2007 04:13 AM
System.Security.SecurityException: Security error coolcatjk Pro VB.NET 2002/2003 4 March 2nd, 2006 06:00 PM
System.Security.SecurityException davepruce ADO.NET 1 May 10th, 2005 11:20 AM
'System.Security.SecurityException' Jesus VB.NET 2002/2003 Basics 0 November 4th, 2004 02:20 AM
'System.Security.SecurityException' mrinal ADO.NET 3 August 11th, 2004 07:16 AM





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