New Posts New Posts RSS Feed: Unhandeled Error in sample 080_Security: ASPNET Membership with Registration
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Unhandeled Error in sample 080_Security: ASPNET Membership with Registration

 Post Reply Post Reply
Author
Go4It2 View Drop Down
Newbie
Newbie


Joined: 02-Jul-2010
Location: Australia
Posts: 4
Post Options Post Options   Quote Go4It2 Quote  Post ReplyReply Direct Link To This Post Topic: Unhandeled Error in sample 080_Security: ASPNET Membership with Registration
    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
Back to Top
Go4It2 View Drop Down
Newbie
Newbie


Joined: 02-Jul-2010
Location: Australia
Posts: 4
Post Options Post Options   Quote Go4It2 Quote  Post ReplyReply Direct Link To This Post Posted: 25-Nov-2010 at 5:58pm
Ok, found it - have to add
 
args.IsErrorHandled = true;
 
in the login_async callback function.
 
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post 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.
 
 
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down