Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 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 June 30th, 2006, 11:53 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default chap 18, p591 problem

I get to figure 18-6 and then get the following error on submitting the users info:

"An error was encountered. Please return to the previous page and try again.

The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(..."

I've cut out the rest of the error message (the full message from the event log is below)

I've tried this on 3 different systems here, 2 winxp and one server 2003

From the event log (editing out personal info)

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/30/2006 12:47:41 PM
Event time (UTC): 6/30/2006 4:47:41 PM
Event ID: d1da485b2905476bb8be0198018c866d
Event sequence: 230
Event occurrence: 1
Event detail code: 0

Application information:
    Application domain: c8e2c347-1-127961595097183403
    Trust level: Full
    Application Virtual Path: /asp.netwebadminfiles
    Application Path: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp. netwebadminfiles\
    Machine name: XP

Process information:
    Process ID: 3608
    Process name: WebDev.WebServer.EXE
    Account name: DOMAIN\user

Exception information:
    Exception type: TargetInvocationException
    Exception message: Exception has been thrown by the target of an invocation.

Request information:
    Request URL: http://localhost:1385/asp.netwebadmi...rd/wizard.aspx
    Request path: /asp.netwebadminfiles/security/wizard/wizard.aspx
    User host address: 127.0.0.1
    User: DOMAIN\user
    Is authenticated: True
    Authentication Type: NTLM
    Thread account name: DOMAIN\user

Thread information:
    Thread ID: 8
    Thread account name: DOMAIN\user
    Is impersonating: False
    Stack trace: at System.RuntimeMethodHandle._InvokeMethodFast(Objec t target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Web.Administration.WebAdminMembershipProvid er.CallWebAdminMembershipProviderHelperMethodOutPa rams(String methodName, Object[] parameters, Type[] paramTypes)
   at System.Web.Administration.WebAdminMembershipProvid er.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status)
   at System.Web.UI.WebControls.CreateUserWizard.Attempt CreateUser()
   at System.Web.UI.WebControls.CreateUserWizard.OnNextB uttonClick(WizardNavigationEventArgs e)
   at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Obj ect source, EventArgs e)
   at System.Web.UI.WebControls.CreateUserWizard.OnBubbl eEvent(Object source, EventArgs e)
   at System.Web.UI.WebControls.Wizard.WizardChildTable. OnBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


  #2 (permalink)  
Old July 9th, 2006, 08:49 PM
Wrox Author
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: , , .
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Hi,

I was not able to recreate the same error with no luck. I will do some research and let you know if I find out what is happening. Is this still an issue for you?

Bryan

  #3 (permalink)  
Old July 10th, 2006, 07:45 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks - it must be something I'm doing wrong, since it's on 3 different installs I've done. I've just copied your project code, with no modifications to it. I've tried googling under various search terms with no luck either. Is there maybe a prerequisite or step I'm missing?

  #4 (permalink)  
Old August 10th, 2006, 04:21 PM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can anyone help with this one? If you can get it to work, what is your setup? (Installation and configuration steps)

  #5 (permalink)  
Old June 10th, 2008, 12:36 AM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I get this error every so often when I use encrypted passwords without a key. When I embed a key in the system.web section of web.config it sorts me out. I thought maybe this will help someone else. http://www.eggheadcafe.com/articles/...achineKey.aspx




Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 18 code compile problem warlock7 BOOK: Ivor Horton's Beginning Visual C++ 2005 8 January 3rd, 2008 10:04 AM
problem in helloworld progarmme in chapt 18 clnbabu BOOK Beginning Linux Programming, 3rd Edition 0 August 25th, 2007 03:54 AM
Ch 18 - Deserialisation problem using dll classes Dan6 BOOK: Ivor Horton's Beginning Visual C++ 2005 1 February 20th, 2007 02:05 PM
Chap 18 XML,error: multiple DOCTYPE declarations cJeffreywang BOOK: Beginning ASP 3.0 1 November 9th, 2005 03:54 PM
JSP web Development ch-18 struts problem wilson_kwan JSP Basics 0 December 12th, 2004 01:17 PM





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