Print Page | Close Window

Unhandeled Error in sample 080_Security: ASPNET Membership with Registration

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2336
Printed Date: 29-Apr-2025 at 1:10am


Topic: Unhandeled Error in sample 080_Security: ASPNET Membership with Registration
Posted By: Go4It2
Subject: Unhandeled Error in sample 080_Security: ASPNET Membership with Registration
Date Posted: 25-Nov-2010 at 3:35pm
Hi, I'm new to Silverlight & Devforce. I try to figure out how ASP Authentication works. I use the sample 080_Security: ASPNET Membership with Registration. If I enter some random login name/password then I first get the popup message that the credentials are invalid which is right, but then I get an unhandled exception:
Run with Ctrl-F5:
 
Error: Unhandled Error in Silverlight 3 Application The login credentials supplied are invalid.   at IdeaBlade.EntityModel.AsyncProcessor`1.<>c__DisplayClass2.<.ctor>b__0(TArgs args)
   at IdeaBlade.EntityModel.AsyncProcessor`1.Signal()
   at IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__5(Object x)
 
- How and where can I handle this exception?
- Why is it saying Silverlight 3 in the message and not 4?
 
I'm using DevForce Version 6.0.6.1 - VS2010
 
thanks for your help



Replies:
Posted By: Go4It2
Date Posted: 25-Nov-2010 at 5:58pm
Ok, found it - have to add
 
args.IsErrorHandled = true;
 
in the login_async callback function.
 


Posted By: kimj
Date Posted: 26-Nov-2010 at 12:31pm
Thanks Go4It2.  In DevForce 6.0.5 we made a breaking change which required that all exceptions thrown by asynchronous operations must be handled, otherwise the application would terminate.  Unfortunately, we didn't get all our samples modified for this new behavior.   We've now updated this sample.
 
 


Posted By: gregweb
Date Posted: 24-Dec-2010 at 7:41am
I think this needs to be updated in the Silverlight Navigation Sample (JetPack sample) as well, as I just ran accross this issue as well.
 
Greg
 



Print Page | Close Window