Article ID: 820637 - View products that this article applies to.
If you use a LinkLabel control on a localized Windows Form, the application raises the following exception while it tries to deserialize the LinkArea property during run time:
Note In Visual Studio 2005, you will receive the following exception:
An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll.
Additional information: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Never enter personal information or passwords into a window unless you can verify and trust the source of the request. Source: Unknown Site
The application raises the exception because the LinkArea property cannot be deserialized when the property runs in a partially-trusted context.
To work around this problem, set the unrestricted property to True, so that the property runs in a fully-trusted context, as follows.
Microsoft Visual Basic .NET or Microsoft Visual Basic 2005 Code
Microsoft Visual C# or Microsoft Visual C# 2005 Code
Steps to Reproduce the Behavior
Article ID: 820637 - Last Review: January 27, 2006 - Revision: 2.2