Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design 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 October 28th, 2006, 07:37 PM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default get an error when creating a new user...??

I am getting the following error when I try to create a new user using Visual developer 2005: I already have admin & the users roles created.
The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation. 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)
I also noticed that in the machine.config file the following:

<configProtectedData defaultProvider="RsaProtectedConfigurationProvider ">
      <providers>
            <add name="RsaProtectedConfigurationProvider"
type="System.Configuration.RsaProtectedConfigurati onProvider,System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="Uses RsaCryptoServiceProvider to encrypt and decrypt"
        keyContainerName="NetFrameworkConfigurationKey"
        cspProviderName=""
        useMachineContainer="true"
        useOAEP="false" />

          <add name="DataProtectionConfigurationProvider"
type="System.Configuration.DpapiProtectedConfigura tionProvider,System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="Uses CryptProtectData and CryptUnProtectData Windows APIs to encrypt and decrypt"
        useMachineProtection="true"
        keyEntropy="" />
      </providers>
</configProtectedData>

All the underlined attributes says not declared.
Note: When we use the login tools the table and database is auto generated for u but I changed it to my database that I created in MS SQL server 2000.
After changing the connection string from default (auto generated), I noticed the line saying attribute not declared.
I have been stuck on this for the last week…So could you help me…thanks…appreciate it!
  #2 (permalink)  
Old October 29th, 2006, 01:27 PM
Friend of Wrox
Points: 793, Level: 10
Points: 793, Level: 10 Points: 793, Level: 10 Points: 793, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2005
Location: OKC, OK, USA.
Posts: 227
Thanks: 1
Thanked 7 Times in 7 Posts
Default

riki:
This may or may not be the solution, but "food for thought".
In application I developed, allowed users with supervisor status to add new users to the application. Once added the user would log into the application successfully and for those that were unsuccessful, I had to make sure they existed in the "Company's Domain". When added to the Domain, the users were able to access the application without a problem...

This is just food for thought.

Hope this helps.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error creating user on the administration tool r__gery ASP.NET 2.0 Basics 3 May 23rd, 2007 07:59 AM
An error on Creating User with Web Site Tool fmegersa ASP.NET 1.0 and 1.1 Basics 0 December 1st, 2006 08:30 PM
Get an error when creating new user...??...Urgent riki_gill ASP.NET 2.0 Professional 2 November 14th, 2006 09:19 AM
error when creating a user Shell84 ASP.NET 2.0 Basics 0 February 28th, 2006 10:56 AM
Error while creating User acc In AD spraveens Classic ASP Components 0 June 12th, 2004 08:17 AM





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