Hi, I am working on a WPF application in which I have a WPF browser control that navigates to the URL "http: ...." that accepts Windows credentials.
Problem: when I copy the paste URL, it just does authentication and works fine. But when navigating from a WPF web browser, it does not raise Windows accounts.
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> The 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 the navigation with my browser. The source is reset to some default.aspx page on the site. I assume this is due to a failure in receiving Windows authentication information. I tried to find help on the Internet, but did not find any suitable results.
What and where is the problem?
source share