Get current Windows user name within Silverlight -


Is it currently possible to meet the user's username with Silverlight? You can assume that the user has Windows OS and the Silverlight application is hosted in Internet Explorer. Getting ASP.NET from server side is not an option, this Silverlight application will be hosted on a static HTML file. Unfortunately, I do not think this is possible.

Believe it, but it does not consider itself, so most common are normally not present in the subset of the available settings for the net mechanism Silverlight apps available to us to log in to the user's name normally:

that is.

  System.Net.CredentialCache.DefaultCredentials System.S Ecity.Principal.WindowsIdentity.GetCurrent () .name Environment.Username  

All of the Silverlight applications are unavailable, while (in) a Windows Form application, using each of these mechanisms I think that this makes sense, in fact, because there is no guarantee that the Silverlight application is going to runnin

Incidentally, Here also the question was asked: To achieve this Original way thread running again Aspiknet username "injection" is to give you the app "hosting" the Silverlight Aspiknet page. Of course, even if it works in the Silverlight app before running in the context of the client's machine, it gives you ASP.NET user name from ASP.NET form or Windows based authentication and currently logs to the customer's user The not Windows usernames machine to be made in


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -