Declaritive security and security warnings

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?
 
N

Nicole Calinoiu

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top