Click here to Skip to main content
Sign Up to vote bad
good
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 - 11:28
Edited 24 Jul '12 - 11:34

Comments
Christian Amado - 24 Jul '12 - 17:29
Sorry, I'm using an Oracle Database on this project.
Sergey Alexandrovich Kryukov - 24 Jul '12 - 17:31
Add it using "Improve question"... --SA
Christian Amado - 24 Jul '12 - 17:34
Thanks for the advice.
woutercx - 24 Jul '12 - 21:11
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 - 24 Jul '12 - 21:20
Does your code look like this example? http://www.silverlight.net/learn/advanced-techniques/wcf-ria-services/wcf-ria-services-(silverlight-quickstart)
Christian Amado - 25 Jul '12 - 10:37
Yes looks very similar. I override the CreateObjectContext() method where I need the authenticated username.
woutercx - 24 Jul '12 - 21:25
Did it work before, but not anymore now? Or hasn't it worked yet?
Christian Amado - 25 Jul '12 - 10:37
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
Your Filters
Interested
Ignored
     
0 OriginalGriff 345
1 Sergey Alexandrovich Kryukov 338
2 Arun Vasu 315
3 Maciej Los 208
4 Aarti Meswania 180
0 Sergey Alexandrovich Kryukov 9,755
1 OriginalGriff 7,549
2 CPallini 4,018
3 Rohan Leuva 3,362
4 Maciej Los 2,951


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 24 Jul 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid