Reprinted: WebBrowser is only enabled for applications outside the browser and applications running in Internet Explorer with higher permissions. webbrowserexplorer
I have summarized the problems of enhancing the WebBrowser's trust in Silverlight Based on a lot of blogs written by great gods and my own project:
1) Select the Silverlight main program, right-click "property"> "Sliverlight", and select the position circled by the red line on the way:
2) select Signature: click "create test certificate" and enter the certificate password; click "More details"> "details"> "Copy to file" to copy the Certificate file that you created, you can choose to export the private key based on your needs. After exporting the certificate, double-click to install the certificate,
3) Select the certificate storage location: Install the certificate twice. Install the certificate once on the "trusted publisher" and then on the "Trusted Root Certificate Authority ".
4) after the installation, modify the information in the Registry. (The file for modifying the registry will be uploaded as an attachment at the bottom of the article)
5) the above are the solutions for this problem: the following is my problem of displaying embedded (html) reports in Silverlight;
I also follow the above operations, but then I will report a very strange error:
After studying for a long time, I finally found that the MIMe type is not added to ISS:
Modify the Registry file:
Add a new key AllowElevatedTrustAppsInBrowser to the Registry.
Its name is AllowElevatedTrustAppsInBrowser, which is of the DWORD type and the value is 1. Set Silverlight to allow access to some local resources.
• Key name: AllowElevatedTrustAppsInBrowser
• Key type: DWORD
• Key Value: 0x00000000 (disabled) or 0x00000001 (enabled)
The key registration location is different in 32-bit and 64-bit systems. For details, see:
- HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Silverlight \ (for 32-bit) or
- HKEY_LOCAL_MACHINE \ Software \ Wow6432Node \ Microsoft \ Silverlight (for 64-bit)