In the authentication element, set the mode property to Windows and remove the forms element.
<authentication mode="Windows">
</authentication>
In the client project, open the code-behind file (App.xaml.cs or App.xaml.vb) for the App.xaml file.
In the constructor, uncomment the line that sets the Authentication property to WindowsAuthentication and comment out the line that sets the property to FormsAuthentication.
public App()
{
InitializeComponent();
WebContext webContext = new WebContext();
//webContext.Authentication = new FormsAuthentication();
webContext.Authentication = new WindowsAuthentication();
this.ApplicationLifetimeObjects.Add(webContext);
}
Build and run (F5) the application.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To use Windows Authentication
<authentication mode="Windows">
</authentication>
public App()
{
InitializeComponent();
WebContext webContext = new WebContext();
//webContext.Authentication = new FormsAuthentication();
webContext.Authentication = new WindowsAuthentication();
this.ApplicationLifetimeObjects.Add(webContext);
}
Feature now Added
Revision #7