471,570 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Usercontrol in IE showing warning message. How to avoid this?

I've created a usercontrol which is hosted in Internet Explorer. It
with some action buttons. I could place all buttons on this
usercontrol but I did not. When the user presses one of the buttons i
detect some more action needs to be taken and open a dialogbox. using
ShowDialog. But IE finds a usercontrol opening a dialogbox dangerous
(Although the usercontrol could alsready have done anything because i
have elevated its permissions using a strongname and such.)

It changes the dialog icon to include a little exclamation mark and
shows a balloon tooltip on this new icon stating:
'Never enter personal information or paswords into a window unless you
can verify and thrust the source of the request. Souce: localhost'

This is anoying, because it keeps on coming everytime over and over
and the user has no possibility (it seems) to make this balloon not
popping up again and again.

Can this dialog be avoided by asserting one of the permissionsets? I
do not find one.

Feb 1 '06 #1
2 1640
I suspect the message you are seeing is because the control isn't signed.
You may want to get a software publishers certificate from VeriSign and sign
the control.

Brian Patterson
http://dotnet.redeyepos.com
http://brian.redeyepos.com

<mv*********@nospam.nospam> wrote in message
news:a2********************************@4ax.com...
I've created a usercontrol which is hosted in Internet Explorer. It
with some action buttons. I could place all buttons on this
usercontrol but I did not. When the user presses one of the buttons i
detect some more action needs to be taken and open a dialogbox. using
ShowDialog. But IE finds a usercontrol opening a dialogbox dangerous
(Although the usercontrol could alsready have done anything because i
have elevated its permissions using a strongname and such.)

It changes the dialog icon to include a little exclamation mark and
shows a balloon tooltip on this new icon stating:
'Never enter personal information or paswords into a window unless you
can verify and thrust the source of the request. Souce: localhost'

This is anoying, because it keeps on coming everytime over and over
and the user has no possibility (it seems) to make this balloon not
popping up again and again.

Can this dialog be avoided by asserting one of the permissionsets? I
do not find one.

Feb 2 '06 #2
On Wed, 1 Feb 2006 21:57:33 -0600, "Brian Patterson"
<br***********@redeyepos.comSPAM___N_O> wrote:
I suspect the message you are seeing is because the control isn't signed.
You may want to get a software publishers certificate from VeriSign and sign
the control.


Sorry but that was not the case. I found it out with the help of
Patrice:

More specifically I believe you are in SafeTopLevel Window mode :
http://msdn.microsoft.com/library/de...classtopic.asp

Excerpt :

These special windows, for use by partially-trusted code, are
guaranteed to be clearly labeled and have minimum and maximum size
restrictions. These restrictions help prevent potentially harmful code
from spoofing attacks, such as imitating trusted system dialogs.
....

I needed the UIPermission class in my control to request the right
level of UIPermissionWindow (AllWindows or SafeTopLevelWindows).

Marc
Feb 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by johnb41 | last post: by
reply views Thread by Arpan | last post: by
3 posts views Thread by Jeff | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

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.