PRB: Strong Named User Controls Do Not render in Internet Explorer (814669)
The information in this article applies to:
- Microsoft .NET Framework SDK 1.1
- Microsoft .NET Framework SDK 1.0 SP2
- Microsoft Internet Explorer 6.0 Service Pack 1
SYMPTOMSWhen you host a strong named .NET UserControl class in
Microsoft Internet Explorer, the control does not render even if you create a
machine-level code group for that strong name and then grant the code group Full trust in the Microsoft .NET Framework Configuration Tool
(Mscorcfg.msc).CAUSEThe Microsoft .NET Framework requires that you explicitly
enable strong-named assemblies that partially-trusted callers such as Internet
Explorer use. You must now declare the strong-named assemblies that are
designed for use by partially-trusted code. Without this explicit declaration,
the caller must have Full trust permissions to use the code.RESOLUTIONAssemblies that are intended to be called by partially
trusted code must declare the custom attribute, System.Security.AllowPartiallyTrustedCallersAttribute class. To add this attribute to the Assemblyinfo.vb or
Assemblyinfo.cs, add the following lines of code: Microsoft C# .NETusing System.Security;
[assembly:AllowPartiallyTrustedCallers] Microsoft Visual Basic .NETImports System.Security <Assembly:
AllowPartiallyTrustedCallers> STATUS This
behavior is by design.REFERENCESFor more information about security changes for the
Microsoft .NET Framework, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/5/2003 |
---|
Keywords: | kbprb KB814669 kbAudDeveloper |
---|
|