views:

177

answers:

2

We currently use Silverlight within the browser. ASP.NET writes the Windows Authenticated user name to the ASPX page that the Silverlight control is on. The username is passed as a parameter in to the control when it loads.

How would you get the username with an out-of-browser application?

+1  A: 

Here is a similar question, looks like you are out of luck.

http://stackoverflow.com/questions/1176566/get-current-windows-user-name-within-silverlight

Henrik Söderlund
A: 

I believe the recommended approach to work around this was to store any details like this when you perform the OOB installation, that way you can still access them when you start OOB.

Simon Steele
Would the username be fixed for the user or the machine?
Nanook
I think the OOB installation is per-user, so would be fixed for the user unless they change username. Your other option as of SL4 would be COM interop but of course that will only work on Windows boxes.
Simon Steele