473,903 Members | 6,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.SHDocV w' does not
have a strong name"

Any ideas of work arounds for this? Thanks loads in advance.

Nick.
Nov 21 '05
14 4493
"Nak" <a@a.com> wrote in message
news:er******** ******@TK2MSFTN GP09.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*****@hotmai l.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. "Nak" <a@a.com> wrote in message
news:er******** ******@TK2MSFTN GP09.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\Sys tem32\SHDocVw.d ll" /keyfile:"mykeyf ile.snk"
/out:Interop.SHD ocVw.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******** ********@TK2MSF TNGP12.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.SHDocV w' 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******** ******@TK2MSFTN GP10.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*****@hotmai l.com> wrote in message
news:O9******** *****@TK2MSFTNG P09.phx.gbl...

"Nak" <a@a.com> wrote in message
news:eB******** ******@TK2MSFTN GP10.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
6073
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 server(Windows 2000,.Net Framework 1.1,NO MS OFFICE) I get clsid not found. I believe this is because I do not have MS Office installed on my server( I might be wrong) 1. How do I get rid of this problem 2. If having strong names for the Interop assemblies...
0
1218
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 call it assembly (A)) has a satellite assembly (let's call it assembly (sA)) with localized resources. If it exists, it gets the resource with the given key and returns it, otherwise it reads information from a support database and dinamically...
6
1723
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 I've just begun to work in, there are customer-facing web sites, internally-accessed maintenance and admin web sites, middle-tier business logic assemblies, services, and Windows Forms apps that run on the middle-tier. The policy is to sign the...
10
2703
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 whatsoever. Strong-naming the assembly should benefit the end user just in case he/she wants to reference the assembly in another strong-named assembly or add it to the GAC. If you were a third-party vendor, would you strong-name your...
2
1461
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 named assembly us Microsoft.Practices.EnterpriseLibrary.Logging.dll ?
4
1211
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 of people. Those who understand binary and those who don't. http://code.acadx.com (Pull the pin to reply)
0
6448
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 be modified: if(e.CommandName =="Print") { string parsedreceipt = null; parsedreceipt = DecodeReceipt (e.Item.Cells.Text); Session = parsedreceipt;
3
1312
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 decompiles lib.dll and replaces code parts, and then recompiles again. When MyApplication.exe will load lib.dll the next time, will it detect that it is a different dll if they have strong names?
5
1512
by: Gopal Krish | last post by:
Hello, Can anyone tell me how to strong name a web page? Thanks Gopal
0
9999
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11283
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10875
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10986
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7206
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5894
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6093
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4727
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.