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.