FIX: You receive an "Exception System.Security.SecurityException" error message when you host a .NET Windows Forms control in a browser window on a computer that has the .NET Framework 1.1 SP1 installed (884543)



The information in this article applies to:

  • Microsoft .NET Framework 1.1 Service Pack 1 (SP1)

SYMPTOMS

Consider the following scenario. You expose events for scripting by declaring a public interface that is Component Object Model (COM) visible. You invoke a delegate that has been granted full trust through policy. When you host a Microsoft .NET Windows Forms control in a browser window on a computer that has the Microsoft .NET Framework 1.1 Service Pack 1 (SP1) installed, you receive a security exception error message that is similar to the following:
Exception: System.Security.SecurityException _message: Request for the permission of type System.Security.Permissions.SecurityPermission, . failed

CAUSE

This problem occurs because of the additional delegate security features that are installed by the .NET Framework 1.1 SP1. This problem does not occur on a computer that has an earlier version of the .NET Framework 1.1 installed.

RESOLUTION

Software update information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next .NET Framework 1.1 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this software update, you must have the .NET Framework 1.1 SP1 installed on the computer.

Restart requirement

You must restart the computer after you apply this software update.

Software update replacement information

This software update does not replace any other software updates.

File information

The English version of this software update has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date         Time   Version        Size       File name
----------------------------------------------------------
17-Nov-2004  05:57  1.1.4322.2048  2,138,112  Mscorlib.dll 
16-Nov-2004  02:28  1.1.4322.2048  2,514,944  Mscorsvr.dll 
16-Nov-2004  02:29  1.1.4322.2048  2,506,752  Mscorwks.dll

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about how to sink managed events from COM clients when you write .NET Windows controls, click the following article number to view the article in the Microsoft Knowledge Base:

313891 How to sink managed C# events in Internet Explorer script

For more information about security exceptions that occur when you use event handlers in Microsoft Internet Explorer, click the following article number to view the article in the Microsoft Knowledge Base:

316510 Security exception when you use event handlers in Internet Explorer

For more information about the terminology that is used to describe Microsoft software updates, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


Modification Type:MinorLast Reviewed:6/1/2006
Keywords:kbNetFrame110preSP2fix kbframe kbBug kbfix kbHotfixServer kbQFE KB884543 kbAudDeveloper kbAudITPRO