Re: Using AXBrowser in a strong names assembly

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nak (a_at_a.com)
Date: 09/26/04


Date: Sun, 26 Sep 2004 20:36:44 +0100

Hi There,

    I have the solution,

    Using the Visual Studio .NET command prompt I ran "aximp", this created
2 interop assemblies.

    aximp "C:\Windows\System32\SHDocVw.dll" /keyfile:"mykeyfile.snk"
/out:Interop.SHDocVw.dll

    I then referenced these 2 assemblies in my project and then created the
browser in code rather than dragging and dropping from the toolbox. For
example,

    Dim pAWBHelp as AxWebBrowser
    pAWBHelp = New AxWebBrowser()
    Call Me.Controls.Add(pAWBHelp)

    ^ This will create a new AxWebBrowser control and add it to the forms
control container, voila!

    Thanks to those of you that helped! :-)

Nick.

"Nak" <a@a.com> wrote in message
news:%23l1IE36oEHA.2864@TK2MSFTNGP12.phx.gbl...
> Hi there
>
> I'm trying to use the Microsoft Web Browser within a strong names .NET
> assembly that I have written. Unfortunately I am getting the following
> linker problem as the Interop DLL that was created does not have a strong
> name,
>
> "Unable to emit assembly: Referenced assembly 'Interop.SHDocVw' does
> not have a strong name"
>
> Any ideas of work arounds for this? Thanks loads in advance.
>
> Nick.
>
>



Relevant Pages

  • Re: Secure Sites In IE
    ... > "How to troubleshoot problems accessing secure Web pages with Internet ... > Another thing - do yo have this issue if you try another browser? ... > Nick Greed wrote: ... >>When I attempt to open some secure (https:) web sites in IE, ...
    (microsoft.public.windows.server.networking)
  • Re: Secure Sites In IE
    ... I have this issue no matter what internet browser that I use, ... checking other hardware on our netork ... Nick ...
    (microsoft.public.windows.server.networking)
  • Re: washing powder linux
    ... nick wrote: ... > italian battery manufacturer powergen: ... I just visited their web page and the Browser title is Powergen-italia ... it comes bundled with your Microsoft product. ...
    (alt.os.linux)
  • Re: OpenNetCF - Retrieving Latest Source
    ... Surely the one of the points of OpenNETCF was that everyone can contribute - ... >> But the source in the browser is different from the download package. ... >> think Nick is asking if it would be possible to get a public read only ...
    (microsoft.public.dotnet.framework.compactframework)