Resolve WebBrowser Access "to protect your security" warning and turn on IIS directory browsing features

Source: Internet
Author: User

1. Resolve WebBrowser Access "to protect your security" warning

When you use WebBrowser to link local Web page files in WPF, "to protect your security, your Web browser has restricted this file from displaying active content that may have access to your computer." "Warning, the information has not been resolved after the consultation. A problem with the reference path is found.

The first use is navigate (the new Uri ("file:///F:/JSPweb/middle.html")) to discover that this warning occurs when access to local files is insufficient.

The Web site is then assigned to the IIS local server and used navigate (The New Uri ("http://localhost")) for normal access.


2. Turn on the IIS directory browsing function

A few days ago in the layout of IIS found not to find the previous familiar directory browsing function, the internet said a lot of solutions, but did not work. It suddenly occurred to me today that the Windows feature was not turned on, and the directory browsing function was found in Internet Information services. The following steps are opened:

Control Panel-> All Control Panel items-> programs and features-> enable or turn off Windows features->internet information services-> the World Wide Web Service-> common HTTP features-> directory browsing ( Tick up)


Although the problem is not big, but the solution is still very happy ha.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.