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

M

mvendertaca

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.
 
M

mvendertaca

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/d...typermissionsuipermissionwindowclasstopic.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
 

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