Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 893166 - Last Review: December 3, 2007 - Revision: 3.1
FIX: You receive a System.Security.SecurityException error message when your application calls the PrintDialog.ShowDialog method in the .NET Framework 1.1 SP1
On This Page
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
Service pack information
To resolve this problem, obtain the latest service pack for Windows Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
889100Â
(http://kbalertz.com/Feedback.aspx?kbNumber=889100/
)
How to obtain the latest service pack for Windows Server 2003
Software update information
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. This problem was first corrected in Windows Server 2003 Service Pack 2.
MORE INFORMATION
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684Â
(http://kbalertz.com/Feedback.aspx?kbNumber=824684/
)
Description of the standard terminology that is used to describe Microsoft software updates
APPLIES TO
- Microsoft .NET Framework 1.1 Service Pack 1
| kbwinserv2003sp2fix kbqfe kbhotfixserver kbnetframe110sp2fix kbbug kbfix KB893166 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please