Hi I am Working on a WPF application where in i have a WPF Browser control which navigates to url "http:...." which takes windows credentials.
Issue Is: when i copy paste the URL it simply performs authentication and works fine. But when naviating from WPF Web browser it is not picking up the Windows creds.
public void StartNavigation()
{
if (!String.IsNullOrEmpty(URL) && webBrowser.Source == null)
webBrowser.Navigate(new Uri(URL));
}
<UserControl x:Class="Slb.iDistrict.Prism.Module.JobEmbeddedBrowser.View.JobEmbeddedBrowserView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" Loaded="UserControl_Loaded"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<WebBrowser Name="webBrowser"/>
</Grid>
UserControl_Loaded> Event will call the StartNavigation() method. my Url looks like this: "http://www.test.cmp.com/App/Login/SingleSignon.aspx?Screen=sample&BL=cc&JN=12345" When i Do Navigate my Browser.Source is reset to some default.aspx page of the site. I assume that it is because of failure in getting Windows authentication information. I tried to find some help online but not found appropriate results.
What and Where is the issue?