473,412 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Using AXBrowser in a strong names assembly

Nak
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.
Nov 21 '05 #1
14 4448
Nak
Hi there,

I've tried a few methods of signing the Interop DLL that the IDE creates
but had no luck. So I used "tlbimp" to import a new *signed* Interop DLL
into my Bin folder. This is great with the exception that the web browser
Usercontrol in the toolbox refers to the *unsigned* version. Any ideas on
how I get the Interop DLL ssigned and have it possible for me to create a
web browser by dragging and dropping from the toolbox?

I've found quite a few threads on this subject but none with a solid
("Yes this worked for me!"). People just don't seem to bother letting other
people know if they found a solution, but anyway, I'm sure loads of people
are using this web browser with signed assemblies, thanks for any help!

Nick.

"Nak" <a@a.com> wrote in message
news:%2****************@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.

Nov 21 '05 #2
Nick,

I do not known a solution and do not want to check it because probably
Charles knows it, and when he sees this he will probably answer his fellow
Brittain, he did a lot in this and I remember me very much messages a little
bit like this between him and Fergus.

So wait a while not everybody is looking every hour to this newsgroup.

Cor
Nov 21 '05 #3
Nak
Cor,

Cheers, I shall, just hacking away at it and flitting to and fro OE,
VB.NET IDE and IE. :-)

Nick.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Nick,

I do not known a solution and do not want to check it because probably
Charles knows it, and when he sees this he will probably answer his
fellow Brittain, he did a lot in this and I remember me very much messages
a little bit like this between him and Fergus.

So wait a while not everybody is looking every hour to this newsgroup.

Cor

Nov 21 '05 #4
Nak
Hi again Cor,

Just incase I've missed anything, I am actually using this to display
context sensitive Help in my application. I didn't want to use the HTML
help program because I absolutely hate it, but maybe I have missed other
ways that this can be done? I could use a rich text box but I think that's
a bit clumsy compared to HTML, I don't know, have you any ideas?

Nick.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Nick,

I do not known a solution and do not want to check it because probably
Charles knows it, and when he sees this he will probably answer his
fellow Brittain, he did a lot in this and I remember me very much messages
a little bit like this between him and Fergus.

So wait a while not everybody is looking every hour to this newsgroup.

Cor

Nov 21 '05 #5
"Nak" <a@a.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi again Cor,

Just incase I've missed anything, I am actually using this to display
context sensitive Help in my application. I didn't want to use the HTML
help program because I absolutely hate it, but maybe I have missed other
ways that this can be done? I could use a rich text box but I think
that's a bit clumsy compared to HTML, I don't know, have you any ideas?


I've successfully used the HTMLEditor to display HTML Help:

http://www.itwriting.com/htmleditor/index.php

I don't know if it would fix the strong name issue.

Tim
..NET pros and cons:
http://www.itwriting.com/phorum/list.php?f=6

Nov 21 '05 #6
Nick,

When you have seen all my messages in past about the in my idea at least
flaw integration from a client side help system in Visual Studio (even the
older), you would not have asked that too me.

When I write that, than they most (not guys as Herfried) come with as answer
the documentation for programmers and not for endusers.

However as far as I know are there no plans to do something for that.

I sometimes get the idea that operatoroverloading is much more important
than endusers for developpers.

Cor
Nov 21 '05 #7
Nak
Hi Cor,
I sometimes get the idea that operatoroverloading is much more important
than endusers for developpers.


Yeah, it certainly seems that way. Which is a big shame because the end
user is the most important aspect of the application, they have to be able
to use it. I can use it, but then again I did write it! Maybe Microsoft
will pull their fingers out and making something a little nicer than HTML
help and integrate it with the .NET IDE.

Nick.
Nov 21 '05 #8
Nak
Hi Tim,

I shall check your link out right away, thanks this looks like it could
help! :-)

Nick.

"Tim Anderson" <ti*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"Nak" <a@a.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi again Cor,

Just incase I've missed anything, I am actually using this to display
context sensitive Help in my application. I didn't want to use the HTML
help program because I absolutely hate it, but maybe I have missed other
ways that this can be done? I could use a rich text box but I think
that's a bit clumsy compared to HTML, I don't know, have you any ideas?


I've successfully used the HTMLEditor to display HTML Help:

http://www.itwriting.com/htmleditor/index.php

I don't know if it would fix the strong name issue.

Tim
.NET pros and cons:
http://www.itwriting.com/phorum/list.php?f=6

Nov 21 '05 #9
Nak
Hi Tim,

I'ts a little more in-depth that I first had hoped, but then again, HTML
editing is not an easy thing to achieve by anyone's standards, Dreamweaver
messes me about enough let alone anything else. I am thinking that it would
be better for me to remove all "editing" aspects of the library so that it
just displays, but this is allot of work to do. So instead I am still
thinking of looking elsewhere, don't get me wrong, this would definitely
achieve what I desire but it will also do a whole lot more, and I can't risk
adding new bugs at this late stage. Thanks for the reference though,
recommended to anyone who needs HTML editing functionality.

Nick.

"Nak" <a@a.com> wrote in message
news:uI**************@TK2MSFTNGP15.phx.gbl...
Hi Tim,

I shall check your link out right away, thanks this looks like it could
help! :-)

Nick.

"Tim Anderson" <ti*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"Nak" <a@a.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi again Cor,

Just incase I've missed anything, I am actually using this to display
context sensitive Help in my application. I didn't want to use the HTML
help program because I absolutely hate it, but maybe I have missed other
ways that this can be done? I could use a rich text box but I think
that's a bit clumsy compared to HTML, I don't know, have you any ideas?


I've successfully used the HTMLEditor to display HTML Help:

http://www.itwriting.com/htmleditor/index.php

I don't know if it would fix the strong name issue.

Tim
.NET pros and cons:
http://www.itwriting.com/phorum/list.php?f=6


Nov 21 '05 #10
"Nak" <a@a.com> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Hi Tim,

I'ts a little more in-depth that I first had hoped, but then again,
HTML editing is not an easy thing to achieve by anyone's standards,
Dreamweaver messes me about enough let alone anything else. I am thinking
that it would be better for me to remove all "editing" aspects of the
library so that it just displays, but this is allot of work to do.


Actually, it's not too bad. Just set isDesignMode to false :-)

Tim
..NET pros and cons:
http://www.itwriting.com/phorum/list.php?f=6


Nov 21 '05 #11
Nak
Hi Tim,
Actually, it's not too bad. Just set isDesignMode to false :-)
Maybe I should give it a go, I'm just a bit scared about using code that
I haven't really read or understand particularly much. I can read C#. but
the code for the HTMLEditor is immense, so if any weird bugs start appearing
I won't have much option but to delve into the code or pull it out
completely. That's not to say that I won't get anything bad from the
WebBrowser control, but I can't get the damn thing to work in a signed
assembly anyway!

I shall try to have a stab at it. By the way, do you have any
information on distribution? Because my application is commercial, I don't
want to go breaking *any* laws, I'll check your site out again but if you
can think of anything important please let me know. Cheers for your time
and help :-)

Nick
"Tim Anderson" <ti*****@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... "Nak" <a@a.com> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Hi Tim,

I'ts a little more in-depth that I first had hoped, but then again,
HTML editing is not an easy thing to achieve by anyone's standards,
Dreamweaver messes me about enough let alone anything else. I am
thinking that it would be better for me to remove all "editing" aspects
of the library so that it just displays, but this is allot of work to do.


Tim
.NET pros and cons:
http://www.itwriting.com/phorum/list.php?f=6

Nov 21 '05 #12
Nak
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:%2****************@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.

Nov 21 '05 #13

"Nak" <a@a.com> wrote in message
news:eB**************@TK2MSFTNGP10.phx.gbl...
I shall try to have a stab at it. By the way, do you have any
information on distribution? Because my application is commercial, I
don't want to go breaking *any* laws, I'll check your site out again but
if you can think of anything important please let me know. Cheers for
your time and help :-)


No problem with distributing the HTMLEditor code; but note that you will
need to include the mshtml PIA (Primary Interop Assembly) with your app.
There are ways around that too; if you don't need the editing features you
could use one of the IE or mshtml wrappers that doesn't depend on mshtml. It
doesn't matter too much if you are distributing on CD.

Tim
..NET pros and cons:
http://www.itwriting.com/phorum/list.php?f=6

Nov 21 '05 #14
Nak
Hi Tim,

I found the solution to my original problem, now I'm having to deal with
the flakiness of the webbrowser control, such joy! :-) But I have a good
small solution now I think.

Nick.

"Tim Anderson" <ti*****@hotmail.com> wrote in message
news:O9*************@TK2MSFTNGP09.phx.gbl...

"Nak" <a@a.com> wrote in message
news:eB**************@TK2MSFTNGP10.phx.gbl...
I shall try to have a stab at it. By the way, do you have any
information on distribution? Because my application is commercial, I
don't want to go breaking *any* laws, I'll check your site out again but
if you can think of anything important please let me know. Cheers for
your time and help :-)


No problem with distributing the HTMLEditor code; but note that you will
need to include the mshtml PIA (Primary Interop Assembly) with your app.
There are ways around that too; if you don't need the editing features you
could use one of the IE or mshtml wrappers that doesn't depend on mshtml.
It doesn't matter too much if you are distributing on CD.

Tim
.NET pros and cons:
http://www.itwriting.com/phorum/list.php?f=6

Nov 21 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Binesh | last post by:
Hi I used Interop assemblies to read Excel data into DataSet. I am able to run it successfully on my workstation(windows XP and VS .Net 7 and MS Office XP) but when I port my code to...
0
by: Mário Sobral | last post by:
Hi, I created an assembly (let's call it assembly (B)) that returns a localized resource for a given key (similar to System.Globalization.ResourceManager). I checks if the caller assembly (let's...
6
by: Tom Dacon | last post by:
If you're not putting assemblies in the GAC, but are referencing shared code with copylocal=true into the projects that use them, is there any value to signing the assemblies? In the environment...
10
by: Tony Jones | last post by:
Can anyone think of a reason why a 3rd party vendor writing .NET components would NOT strong name their assemblies? What harm does adding a strong-name to assembly present - I would think none...
2
by: Microsoft | last post by:
Hello I want make my assembly strong named. Now I have the Error "Microsoft.Practices.EnterpriseLibrary.Logging.dll is not strong named" What can I dou ? It's possible to make a strong...
4
by: Frank Oquendo | last post by:
How do you go about verifying that an assembly with a strong name has not been tampered with? And how do you verify that it's been signed by a particular author or vendor? -- There are 10 kinds...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
3
by: Leonardo D'Ippolito | last post by:
Hello sirs, I am trying to understand how strong names work. Suppose I have lib.dll (a .net library), and also MyApplication.exe (a .NET WinApp) . MyApplication uses lib.dll . Suppose someone...
5
by: Gopal Krish | last post by:
Hello, Can anyone tell me how to strong name a web page? Thanks Gopal
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.