tags:

views:

2527

answers:

4

Hello,

I created a com component in C#, which I registered by using Regasm. I am able now to use this in IE by using ActiveXObject(...). However this only works when I change my IE security settings and allow to run unsigned activex controls, in which case I get the message:

An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?

I always want IE to allow this interaction without the prompt. Does anybody know how this can be done?

Thanks

A: 

I think you can just set the sites trust level to full.

Tools->Internet Options->Security->Trusted Sites->Sites button

Ryan Smith
I already added the site as to my trusted list. I still get the prompt.
vikasde
A: 

As for signing the ActiveX see this article. However you will still have to allow the ActiveX (it'll just show you as the author). See Ryan's answer for how to allow the ActiveX for this site.

C. Ross
I don't mind allowing the activex control, however if I keep getting the prompt then will become annoying. The control will be used only on our intranet anyways. I will see if signing helps.
vikasde
+2  A: 

Your ActiveX control must implement the IObjectSafety interface in order for IE to stop showing the "unsafe?" prompt. I did this several years ago for a VB6 ActiveX control. This page shows you how to do it in .Net.

David
That worked! Thanks a bunch David.
vikasde
A: 

an activeX control on this page might be unsafe to interact with other parts of the page.this stuff is showing while im chating and i unable to see the message and write the messgae in yahoo messenger.....please help me with answer

pervezz

related questions