Re: IObjectSafety in C#
- From: Stefan Belopotocan <Stefan Belopotocan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 04:32:10 -0700
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
> >
> >
> >
.
- Prev by Date: Re: ActiveX within another ActiveX
- Next by Date: Re: ActiveX within another ActiveX
- Previous by thread: COM service starts twice
- Next by thread: Scheduler: Wanting to add a task
- Index(es):
Relevant Pages
|