Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I have a Silverlight Business Application, three project on it:
1. SLApp (Silverlight Application).
2. SLDataServices (ADO.NET Entity Framework, Domain Service, Metadata, Extensions for metadata).
3. SLWeb (ASp.NET WebSite with ASP.NET Membership enabled and working).
 
When I run the project a Login Page appears, you type user and pass. After that you logged on, so the Silverlight app loads (I pass user & pass parameter) and login in silverlight app too.
 
When the Ribbon Menu loads (via DomainDataSource) I see the error on the RequiredAuthentication Atributte on my DomainService in SLDataServices project. When I breakpointed on this line of code I can see that I have a cookie empty and the ServiceContext setted to null.
 
I'm using an Oracle Database on this project.
 
How can I obtain the user authenticated on my DomainService?
 
Thanks in advance.
Posted 24-Jul-12 12:28pm
Edited 24-Jul-12 12:34pm
v2
Comments
Christian Amado at 24-Jul-12 17:29pm
   
Sorry, I'm using an Oracle Database on this project.
Sergey Alexandrovich Kryukov at 24-Jul-12 17:31pm
   
Add it using "Improve question"...
--SA
Christian Amado at 24-Jul-12 17:34pm
   
Thanks for the advice.
woutercx at 24-Jul-12 21:11pm
   
It's impossible to tell just by reading your question. Unless I see it in front of me and I can look at every property. First thing I would do is check the eventlog on the server for any authentication errors.
woutercx at 24-Jul-12 21:20pm
   
Does your code look like this example? http://www.silverlight.net/learn/advanced-techniques/wcf-ria-services/wcf-ria-services-(silverlight-quickstart)
Christian Amado at 25-Jul-12 10:37am
   
Yes looks very similar. I override the CreateObjectContext() method where I need the authenticated username.
woutercx at 24-Jul-12 21:25pm
   
Did it work before, but not anymore now? Or hasn't it worked yet?
Christian Amado at 25-Jul-12 10:37am
   
Never works in the current project.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 390
1 Maciej Los 217
2 OriginalGriff 213
3 BillWoodruff 135
4 Garth J Lancaster 90
0 OriginalGriff 7,953
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,293
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 24 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100