In order to run the BrowserTextControl component in Internet Explorer, the .NET Framework security mechanism Code Access Security (CAS) must be adjusted. Our documentation describes how to adjust these settings manually:

Adjusting the Client-Side Settings Manually

In the shipped samples, we describe another automated way of adjusting the security settings. This approach uses Javascript to make the required changes. With Windows Vista, Windows 7 and Windows 8, User Account Control has been integrated, so that such changes require explicit administrator rights. Additionally, Javascript might be disabled in some browsers.

So we need another confident way to adjust these settings.

The following screenshot shows a Windows Forms application that is able to adjust the settings with elevated user rights. This application can be published using ClickOnce, so that your users can start this process directly on your website.

TX Text Control security wizard

All you need to do is to download this project and to change the URLs in the frm_dialog.cs file:

// [C#] 
newSettings.MembershipUrl = @"http://www.textcontrol.com/*"
newSettings.RedirectUrl = @"http://www.textcontrol.com"

Then you might want to sign it using your certificate in order to publish the application using ClickOnce.

The password for the temporary certificate is: txtextcontrol

In the ASPX page that contains the BrowserTextControl OBJECT tag, you can add an HTML link that refers to the published wizard folder:

<a href="SecuritySettings/tx_security_wizard.application">Start security wizard</a> 

When the wizard is downloaded and started, the user just need to click on the Run button and the security settings are adjusted automatically. After that, all Internet Explorer instances are closed and reopened again automatically to apply these changes.

Last edited Jan 18, 2013 at 2:52 PM by txtextcontrol, version 3