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 December 27th, 2004, 04:30 AM
Registered User
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Registering a new user

Hi
I made a web site using the codes given in the book.I'm new to programming. I remove some modules: file manager,mailing list,forums.
I want to add some modules i made later.
I try to test the login and registiration part of the site.It deploys without an error.I go to register page.then enter the the information.but when i click register nothing happens.It doent give any errors.


 
Old December 27th, 2004, 10:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try setting some breakpoints, or use the ASP.NET Tracing/Debug messages.

This isn't a good project for a beginner...

Eric
 
Old January 2nd, 2005, 07:47 AM
Registered User
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

when i click sign up it gives an error
                 EventLog.CreateEventSource("SinavProg.COM", "Application"); EventLog.WriteEntry("SinavProg.COM", message, entryType)

Win32Exception (0x80004005): Access is denied]

[InvalidOperationException: Cannot open log for source {0}. You may not have write access.]
   System.Diagnostics.EventLog.OpenForWrite() +367
   System.Diagnostics.EventLog.WriteEvent(Int32 eventID, Int16 category, EventLogEntryType type, String[] strings, Byte[] rawData) +280
   System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) +463
   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) +68
   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category) +21
   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID) +15
   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type) +11
   Bitirme.SinavProg.Web.SinavProgPage.LogEvent(Strin g message, EventLogEntryType entryType) in c:\inetpub\wwwroot\SinavProg\SinavProgPage.cs:33
   Bitirme.SinavProg.Web.SinavProgPage.SinavProgPage_ Error(Object sender, EventArgs e) in c:\inetpub\wwwroot\SinavProg\SinavProgPage.cs:54
   System.Web.UI.TemplateControl.OnError(EventArgs e)
   System.Web.UI.Page.HandleError(Exception e)
   System.Web.UI.Page.ProcessRequestMain()
   System.Web.UI.Page.ProcessRequest()
   System.Web.UI.Page.ProcessRequest(HttpContext context)
   System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionStep.Execute() +179
   System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +87
 
Old January 2nd, 2005, 09:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The ASPNET user account doesn't have permission to create an event source. This is explained in the readme.htm file in the code download. They advise you to run your site under the higher priviledge system account.

For security reasons I don't like this system option. I prefer creating the event source separately, like from a console mode program, or else changing the code so it logs to a file instead of the EventLog.

Eric
 
Old January 9th, 2005, 04:34 PM
Authorized User
 
Join Date: Oct 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I agree, there is an article on MSDN about creating a cutom installer for an asp.net application that installs the app. It puts and reg entries, event logs, and sources that are needed. Then when complete the app still runs under the asp.net account.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Registering users Glaman BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 March 5th, 2008 07:39 PM
Registering ASCX gbrown ASP.NET 1.0 and 1.1 Professional 1 January 9th, 2007 11:57 AM
Email Registering HelpWanted ASP.NET 1.0 and 1.1 Basics 1 September 20th, 2006 04:21 PM
Registering a new user hasanali00 BOOK: ASP.NET Website Programming Problem-Design-Solution 4 April 14th, 2005 05:07 AM
Registering DLL's askenkray Classic ASP Components 4 January 27th, 2005 03:05 PM





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