System.Windows.Forms.WebBrowser login dialog doesn't appear - webbrowser-control

When I navigate to an intranet site requiring windows authentication, the WinForms WebBrowser control isn't displaying a login dialog. But it will display (after refreshing the page) if I first open Internet Explorer and view the same page.
Also, if I make the URL refer to my local IIS instance, the login dialog will appear.
Any ideas? Thanks!

You can send credentials via IAuthenticate. You can either extend the winform webbrowser site or write your own webbrowser wrapper.

Related

can I use build in browser control(In visual studio item tools) for Auth 2?

You know there is a web browser control in visual basic controls.
When we are using Auth2 for get into Google Apps(Gdrive,GPlay...) it opens a webpage in OS default browser(Chrome , Fire fox...) to get permissions. How can I make it to request from a web browser control on the form without opening other browsers?
The Google .Net client library is designed to open the users default browser for authentication.
The client library does not have the functionality to give you the url you would need to open it in a web browser control.
Sorry this is not possible

how to open webpage in other web browser control in vb.net?

I have two we browsers in my form.
first form navigates to a website at load event.
now whenever user clicks any link after load of initial webpage, i want that link to be opened in another web browser control.
how can i do this??

InfoPath 2010 forms do not open in the Browser using IE8

If the user has InfoPath installed on their PC the form will default to open in InfoPath. This is not desirable. All forms should open in the browser not in InfoPath. Why? Because some users in the company my have infopath installed and some may not. It's unrealistic to uninstall InfoPath on users computers just so the forms will open in the browser.
Please review this video for more details: http://www.youtube.com/watch?v=lkIeE8MTnSc
I had the same problem. For me, pasting "?OpenIn=Browser" after the links (by default), solved the problem
You can force Sharepoint to open Infopath forms in the browser instead of the client application (Infopath).
In short:
Make sure your form is browser enabled
Make sure your form library is set to "Display as web page" under advanced settings
Make sure you configure the InfoPath Forms Services to render form templates that are browser enabled by users.
Quote from Open Infopath form in a browser when click New Item on Forms Library:
When you are creating a Infopath form make sure you tick the Enable
browser enabled features only at the time when you are creating a new
infopath form. Make sure that your form is browser enabled (Tools ->
Form Options -> Compatibility) in InfoPath. The "Design a form that
can be opened in the browser" is checked and selected. After designing
your form publish it in your Sharepoint Forms Library.
After that follow this step:
Go to the Form Library to which you published the InfoPath form
template.
Click Settings on the Form Library menu bar and choose Form
Library Settings from the drop-down menu.
On the Customize page under the General
Settings category, click Advanced settings .
On the Form Library Advanced Settings: page
under the Browser-enabled Documents category, choose Display as a Web
page .
From the Central Administration also make sure to enable this feature.
To enable this setting:
Open SharePoint Central Administration .
Click the Application Management tab.
On the Application Management page under the InfoPath Forms
Services category, click Configure InfoPath Forms Services .
On the Configure InfoPath Forms Services page under the User
Browser-enabled Form Templates category, check Render form templates
that are browser-enabled by users .
InfoPath will not open in Browser when used as a default form in a 2010 SharePoint Document set. This occurs whether force open in browser is set or not. It's a bug. I am wondering what InfoPath sees when it determines whether or not to open in the client and if there is a way to disable this writing some custom code into the form? Or perhaps once could customize the document set settings such that it would always open in the browser? from other posts on the web this problem also occurs with various other SharePoint 2010 special libraries/templates such as record center.
Moontear, The expected behavior is that ALL links (search links, task links, workflow email links) associated with the published InfoPath form open in the browser regardless of InfoPath being installed on users PCs. Keep in mind that ALL form links will open in the browser when using Chrome or FireFox.

Testing Facebook app on VB.NET WebBrowser - IFrame Access Deined - Cross-Domain Scripting

I have a facebook iframe app I'm trying to test using a WebBrowser Control on a form in VB.NET 2010. Whenever I try to access the WebBrowser.Document.Window.Frames frame object on a document where my app is showing in the broswer, I get an Access Denined exception. Reading around on the web, I see people saying that this is to keep scripts in a document from accessing content in iframes that are pulling content from another domain, as per 'http://msdn.microsoft.com/en-us/library/ms533028.aspx', for security reasons.
While I totally understand why this is done for the general public, how can I disable it on my machine so that I can run these tests? I can't properly test my app without doing it in the facebook iframe and using the WebBrowser control is the only way I know to do this test programmatically.
Any ideas? I'm on windows server 2003 and ie8, .net4.0, if that helps. I own the domain where the app is, and its in AS.NET MVC2, so if there's anything I can do to the web code to enable this??? I also removed the Internet Explorer ENhanced Security COnfiguaration component, but that didn't help.
Thanks,
Philip
Have you tried changing your Internet Explorer settings to enable cross domain scripting?
I believe the VB.Net Web Browser control inherits settings from the local copy of IE.
Try this:
From Internet Explorer, choose Internet Options from the Tools menu.
On the Security tab of the Internet Options dialog box, select the Local Intranet Web Content Zone and then click Custom Level.
Locate the Miscellaneous/Access Data Sources Across Domains setting, and then select Enable, as shown in Figure 2.
Click OK, and then click Yes to the warning dialog box that appears.
Click OK to close the Internet Options dialog box.
Also try adding the Facebook https Url into your trusted sites.
As a last resort disable Native XMLHttp in IE and attempt to revert back to an older version of the XMLHttp object.

Hosting multiple WebBrowser controls in one window causes sessions to "cross": any solutions?

I have a Windows forms application written in VB.NET where I host multiple WebBrowser controls in the same window. The problem I'm having is that the session for each WebBrowser control seem to get "crossed" when making asynchronous requests, such as when loading images. For instance, I have WebBrowser1 that loads an HTML document and WebBrowser2 that loads another HTML document. WebBrowser1 hosts an image that's served up by an ASHX page and is dependent on the browser session. The problem is that when the request is made for the image in WebBrowser1, the server actually receives the session ID from WebBrowser2. Is there a way to force each WebBrowser control to have a unique session?
The WebBrowser control is essentially just an embedded version of IE. If you launch the regular IE, log into a website, then launch a second copy of IE and visit the website you'll find yourself already logged in with the second instance because IE shares cookies across instances. The same is true of the WebBrowser control. If fact, if you log into a website with IE and then have the WebBrowser control go there you'll find that its been logged in, too, since the cookies are all shared.
So basically, AFAIK, you can't do what you want.