FIX: You receive a System.Security.SecurityException error message when your application calls the PrintDialog.ShowDialog method in the .NET Framework 1.1 SP1 (893166)



The information in this article applies to:

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

SYMPTOMS

You start an application across computers in the local intranet. When the application calls the PrintDialog.ShowDialog method, you may receive an error message that is similar to the following on a computer that has the Microsoft .NET Framework 1.1 Service Pack 1 (SP1) installed:
The application attempted to perform an operation not allowed by the security policy. The operation required the SecurityException.To grant this application the required permission please contact your system administrator, or use the Microsoft .NET security policy administration tool.

If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will be shutdown immediately.

Request for the permission of type System.Drawing.Printing.PrintingPermission, System.Drawing, Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a failed.

CAUSE

This problem occurs because PrintDialog.ShowDialog method does not have the correct security permissions. By default, the System.Drawing.Printing.PrintingPermission class is granted the DefaultPrinting security level in the Local Intranet zone security policy.

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

You must have the Microsoft .NET Framework 1.1 SP1 installed to apply this software update.

Restart requirement

You do not have to restart your 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
  ----------------------------------------------------------------------
  01-Mar-2005  17:12  1.1.4322.2302  2,056,192  System.windows.forms.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 additional information, 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:MajorLast Reviewed:4/7/2006
Keywords:kbQFE KBHotfixServer kbNetFrame110SP2fix kbBug kbfix KB893166 kbAudITPRO kbAudDeveloper