Declaritive security and security warnings

  • Thread starter Thread starter joel
  • Start date Start date
J

joel

I've made a windows form application and started placing security attributes
on the assembly. When I use these attributes I always get an annoying
ballon on the app with the following text

"Microft .NET Security Warning
Never enter personal information or passwords into a window unless you can
verify and trust the source of the request

Source:Unknown Site"

The title bar of the program also says the following

"Unknown Zone - <my text here> - Unknown Site"



These are the attributes:
[assembly:
FileIOPermission(SecurityAction.RequestOptional,Unrestricted=true),
FileDialogPermission(SecurityAction.RequestMinimum,Unrestricted=true),
UIPermission(SecurityAction.RequestMinimum,Window=UIPermissionWindow.SafeTopLevelWindows,Clipboard=UIPermissionClipboard.OwnClipboard),
SecurityPermission(SecurityAction.RequestMinimum),
WebPermission(SecurityAction.RequestOptional)
]





How do I prevent this?
 
Your application will need UIPermission for all windows in order to prevent
appearance of this message. BTW, what do you expect the SecurityPermission
and WebPermission attributes to have without any details specified?
 
Back
Top