Click here to Skip to main content
12,898,500 members (60,877 online)
Rate this:
Please Sign up or sign in to vote.
See more: WCF Silverlight Silverlight5 , +
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:28am
Updated 24-Jul-12 11:34am
Christian Amado 24-Jul-12 17:29pm
Sorry, I'm using an Oracle Database on this project.
Sergey Alexandrovich Kryukov 24-Jul-12 17:31pm
Add it using "Improve question"...
Christian Amado 24-Jul-12 17:34pm
Thanks for the advice.
woutercx 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 24-Jul-12 21:20pm
Does your code look like this example?
woutercx 24-Jul-12 21:25pm
Did it work before, but not anymore now? Or hasn't it worked yet?
Christian Amado 25-Jul-12 10:37am
Yes looks very similar. I override the CreateObjectContext() method where I need the authenticated username.
Christian Amado 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 24 Jul 2012
Copyright © CodeProject, 1999-2017
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