473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Declaritive security and security warnings

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,Un restricted=true),
FileDialogPermission(SecurityAction.RequestMinimum ,Unrestricted=true),
UIPermission(SecurityAction.RequestMinimum,Window= UIPermissionWindow.SafeTopLevelWindows,Clipboard=U IPermissionClipboard.OwnClipboard),
SecurityPermission(SecurityAction.RequestMinimum),
WebPermission(SecurityAction.RequestOptional)
]

How do I prevent this?
Apr 19 '06 #1
1 2008
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?
"joel" <jo*************************@hotmail.com> wrote in message
news:Ol**************@TK2MSFTNGP05.phx.gbl...
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,Un restricted=true),
FileDialogPermission(SecurityAction.RequestMinimum ,Unrestricted=true),
UIPermission(SecurityAction.RequestMinimum,Window= UIPermissionWindow.SafeTopLevelWindows,Clipboard=U IPermissionClipboard.OwnClipboard),
SecurityPermission(SecurityAction.RequestMinimum),
WebPermission(SecurityAction.RequestOptional)
]

How do I prevent this?


Apr 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ralph2 | last post by:
I made some Access 2K databases using Windows98SE, now I am making some modifications and find myself inundated with Microsoft Warnings. Windows 2000 Pro and Office 2003 all updated with the latest...
5
by: Andy | last post by:
Just updated to Access2003 -- When I try and open a database file, I get a security warnings message. Help says to go to Tools - Macros - Security and set security to low to prevent this...
2
by: orekinbck | last post by:
Hi There I am inheriting from DateTimePicker class to create a DateTimePicker control with a configurable back colour. I got the original code from http://dotnet.mvps.org/ then converted it to...
3
by: Ray Cassick \(Home\) | last post by:
I have some code that looks like this for one of my classes: Imports System.Security Imports System.Security.Permissions Imports System.Security.Principal ...
2
by: Ray Cassick \(Home\) | last post by:
I am trying to tag an assembly with a minimum requirements check so that it will know if it has the ability to read and write to a specific folder. The problem is that the specific folder is a...
2
by: larpup | last post by:
When running on A2003 runtime with an mde i receive 3 security warnings. Do you want to block unsafe expresssions. Then another security warning Then, do you want to open this file. This...
2
by: Ntl News Group | last post by:
I understand that when using Access 2003, the security settings prevent the VBA code from running correctly and need to be set to the Low setting. My question is: Can this be done automatically...
4
by: wazdakka | last post by:
I have an Access application developed using Access 2003 that I am trying to distribute. I have used the Package and Deployment Wizard that comes with the Office 2003 Developers Kit, and have been...
3
by: Salad | last post by:
On one computer I am getting the message "This file may not be safe if it contains code that was intended to harm your computer. Open It?" and on my computer I didn't get that message when I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.