Re: IObjectSafety in C#



Hi,

Like you I am just developing .NET components which are used like ActiveX
controls in a custom web browser to make a “HTML” GUI for an application.

I have problems with the same error messages as you had including “An
ActiveX control on this page might be unsafe..” . I would like to ask you if
you managed to solve this problem and which way, by implementing
IObjectSafety for controls or registering them as safe, as Igor suggested?

Thanks for any advice.

Stefan

"Jose Santos" wrote:

> Thanks Igor
>
> - Jose
>
> "Igor Tandetnik" wrote:
>
> > "Jose" <Jose@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:F9A6168D-0C50-4110-A960-C1DE14DF4888@xxxxxxxxxxxxx
> > > I believe this is the "not safe for scripting, not safe for
> > > initialization" issue. According to what I have researched so far,
> > > this can be bypass by implementing the IObjectSafety interface. Does
> > > anyone know how to do this in C#? Please advise.
> >
> > I don't know how to implement IObjectSafety in C# - you may want to ask
> > in microsoft.public.dotnet.framework.interop. Note that it is possible
> > to mark a component as safe just by adding some registry entries,
> > without implementing a new interface. See
> >
> > http://msdn.microsoft.com/workshop/components/activex/safety.asp
> >
> > "Using the Component Categories Manager" section.
> >
> > See also KB Article KB814664 "PRB: ActiveX Error When You Sink Managed
> > Events in Internet Explorer Script"
> > --
> > With best wishes,
> > Igor Tandetnik
> >
> > With sufficient thrust, pigs fly just fine. However, this is not
> > necessarily a good idea. It is hard to be sure where they are going to
> > land, and it could be dangerous sitting under them as they fly
> > overhead. -- RFC 1925
> >
> >
> >
.



Relevant Pages

  • VFP and .Net integration
    ... Is there a way to integrate .net components into a VFP app like we can ... integrate ActiveX and COM controls? ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Deep Throat
    ... this port by default: ... >>Norton Firewall, can you block inbound traffic and allow ... >>Your browser will be checked for installed ActiveX ... >>ActiveX controls are a kind of enhancement plugins for ...
    (microsoft.public.security.virus)
  • Re: Finally finished SBS Install, not a config question...
    ... What's the error message can you see when you visit the Windows Update ... Automatic prompting for Active X controls Disable ... Initialize and script ActiveX controls not marked as safe Disable ...
    (microsoft.public.windows.server.sbs)
  • Re: Deep Throat
    ... Norton Firewall 2004, but are so annoying that they keep ... >Port 1025 will have to be open to out bound traffic, ... >Your browser will be checked for installed ActiveX ... Invocation of secure ActiveX controls ...
    (microsoft.public.security.virus)
  • Re: Porting CDialog to ActiveX
    ... First, start with an ActiveVirus, I mean ActiveX, pattern and go from there. ... Note that putting ActiveVirus controls on Web pages is sociopathic, ... We have an app that is MFC CDialog based. ... Is there anything in the ATL project to does it so simply? ...
    (microsoft.public.vc.mfc)