Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4237040
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:43:16+00:00 2026-05-21T02:43:16+00:00

I use Silverlight, .NET 4 (with VB), RIA Services, and I develop under VS

  • 0

I use Silverlight, .NET 4 (with VB), RIA Services, and I develop under VS 2010.
I’m trying to develop an application that allows SSO (Single Sign-On, i.e. automatic authentification on the application through Windows user name and Active Directory) and uses Forms authentication (to log against a DB if SSO fails), and this is where I have problems.

What I tried to do is:

  1. at application start-up, get Windows user name via a call to the server with RIA services (equivalent of a Web Service), which then returns the name found through the HTTP request (HttpContext.Current.Request.LogonUserIdentity.Name). Why such a costly call ? Because Windows user name just can’t be accessed on client side, as other stack overflow topics will show you…

  2. then try to log the user found against the Active Directory: this part is ok.

Part 1 works on local (I indeed have something like “DOMAIN\USER”, but this is because the dev Web server runs on my machine), but when the application is deployed on a remote server it no longer works (I then have “SERVICE NT\NETWORK” which I cannot use).

Do you know how I could get rid of this big issue ? Here are my 1st tracks:

  • manage to get user name on client side (but from what I could read that would be a miracle; even using javascript on the default ASP.NET page I couldn’t)
  • use NTLM .NET authentification mechanism
  • configure IIS or the server used (Windows Server 2008) so that I receive on server side a good “DOMAIN\USER” (maybe via trust settings…?)
  • use Windows Authentication, but how could I also validate users against the DB then ?

Thanks for your help, this is driving me nuts… Moreover this is becoming urgent too 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:43:16+00:00Added an answer on May 21, 2026 at 2:43 am

    Well, the only way I found was to get user via javascript and ActiveX control:

    var wshshell = new ActiveXObject("wscript.shell");
    var username = "UserID=" + wshshell.ExpandEnvironmentStrings("%username%");
    

    Of course this raises deployment issues since:

    • all your users must use I.E.
    • they must set I.E. parameters to allow ActiveX

    I was lucky since 1st point was specifically mentionned, for point 2 I used a .reg file to be executed on all computers, couldn’t find better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Silverlight can use WCF, Web Services, REST based services, .NET RIA Services, but it
I need my ASP.NET web application to use silverlight controls in my web page.
I have been reading up on the .Net RIA Services that Microsoft is developing
I'm using the July CTP of .Net RIA Services in an ASP.Net application with
I am starting to write an application in Silverlight with RIA services and SilverlightFx.
I am starting to develop a facebook game using ASP.NET + Silverlight Which architecture
I'm converting a WinForms app to Silverlight (VB.NET). What should I use instead of
I am trying to browse silverlight.net from a fresh windows2008 machine I try to
Can we use Java in Silverlight?
For WPF/Silverlight layout, is it better to use a Grid with lots of rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.