error when trying to use the UserProfileEditControl
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > error when trying to use the UserProfileEditControl




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    error when trying to use the UserProfileEditControl  
Jason


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 09:27 PM

Hello.  I was hoping somebody could help me with a Commerce Server problem.
I am trying to make use of the "UserProfile.ascx" control that comes with
the MSIB21 site (uses the UserProfileEditControl class).  I dragged this
control onto a new web form within the MSIB21 project and tried to run the
web form in a browser.  I am getting the following error: " Item has already
been added. Key in dictionary: 'GeneralInfo' Key being added: 'GeneralInfo'
".  Now, the MSIB site does have a property called "GeneralInfo" in the User
profile object.  But, I fail to understand why I am getting this error for a
brand new instantiation of the control on a new page?  Can anybody help me
with this?  Thank you.







[ Post a follow-up to this message ]



    Re: error when trying to use the UserProfileEditControl  
Tomas Vera


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-14-04 08:33 PM

Are you running any code in the Page_Load (or other funciton) for this contr
ol?

I've seen this happen where I included a control on my page, then called the
control's public function ("ReloadControl()" ) to load values into the contr
ol
from the containers' Page_Load event. After this, the control's own Page_Loa
d
ran and tried to re-load the control, giving the exception you are getting.

The answer was to call ReloadControl() in the Page_PreRender function to all
ow
the container to load the control, modify some data, and then re-draw the
control in the PreRender handler.

This may not be your issue, but that's what was holding me up.

Hope this helps,

-tomas





On Thu, 8 Apr 2004 16:05:49 -0400, "Jason" <jason.garrett@brulant.com> wrote
:

>Hello.  I was hoping somebody could help me with a Commerce Server problem.
>I am trying to make use of the "UserProfile.ascx" control that comes with
>the MSIB21 site (uses the UserProfileEditControl class).  I dragged this
>control onto a new web form within the MSIB21 project and tried to run the
>web form in a browser.  I am getting the following error: " Item has alread
y
>been added. Key in dictionary: 'GeneralInfo' Key being added: 'GeneralInfo'
>".  Now, the MSIB site does have a property called "GeneralInfo" in the Use
r
>profile object.  But, I fail to understand why I am getting this error for 
a
>brand new instantiation of the control on a new page?  Can anybody help me
>with this?  Thank you.
>






[ Post a follow-up to this message ]



    Re: error when trying to use the UserProfileEditControl  
Jason


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-18-04 03:52 PM

I don't think this is the problem.  I do have code in the Page_Load event
and this is where I am getting the error.  However, the debugger only goes
through this event once and I get the error the first time through.
Furthermore, I removed the "AddToShowList" entry that was adding the
"GeneralInfo" key to the UserProfileEditControl.  Even after removing that,
I still get the error.  Do you have any other ideas?  Thanks.

"Tomas Vera" <tavera@NOxSPAMsbcglobal.net> wrote in message
 news:o9pq70516l8ebpboohvhe53hbi7vne0f7m@
4ax.com...
> Are you running any code in the Page_Load (or other funciton) for this
control?
>
> I've seen this happen where I included a control on my page, then called
the
> control's public function ("ReloadControl()" ) to load values into the
control
> from the containers' Page_Load event. After this, the control's own
Page_Load
> ran and tried to re-load the control, giving the exception you are
getting.
>
> The answer was to call ReloadControl() in the Page_PreRender function to
allow
> the container to load the control, modify some data, and then re-draw the
> control in the PreRender handler.
>
> This may not be your issue, but that's what was holding me up.
>
> Hope this helps,
>
> -tomas
>
>
>
>
>
> On Thu, 8 Apr 2004 16:05:49 -0400, "Jason" <jason.garrett@brulant.com>
wrote:
> 
problem.[vbcol=seagreen] 
the[vbcol=seagreen] 
already[vbcol=seagreen] 
'GeneralInfo'[vbcol=seagreen] 
User[vbcol=seagreen] 
for a[vbcol=seagreen] 
me[vbcol=seagreen] 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:58 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register