473,395 Members | 1,701 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,395 software developers and data experts.

Signing assemblies

Hi,

In my ActiveX component, which is written in .NET, I use a couple of
GUI libraries I found on the net, with nicer group boxes and buttons.

For using .NET assemblies as ActiveX components you must register them
for COM and then add them to the GAC (I'm sure many people know this)

I can sign my own assemblies before I add them with gacutil, but what
about these dll's I don't have the source of ? I can't sign these and
GAC only accepts strong named dll's.

Any advice is welcome,

JB
Sep 5 '06 #1
3 1345
JB,

You can use the IL round tripping technique.

ildasm yourassembly.dll /out=yourassembly.il
ilasm yourassembly.il /res=yourassembly.res /key=yourkey.snk /dll

Basically what's happening is you decompile the assembly to an IL
source file using ildasm then you recompile with ilasm while also
specifying a key file.

Brian

Janiek Buysrogge wrote:
Hi,

In my ActiveX component, which is written in .NET, I use a couple of
GUI libraries I found on the net, with nicer group boxes and buttons.

For using .NET assemblies as ActiveX components you must register them
for COM and then add them to the GAC (I'm sure many people know this)

I can sign my own assemblies before I add them with gacutil, but what
about these dll's I don't have the source of ? I can't sign these and
GAC only accepts strong named dll's.

Any advice is welcome,

JB
Sep 5 '06 #2
So what your saying is that if I have someones assembly that is not strongly
named I can just disassemble the exe/dll and reassemble with my own key?
"Brian Gideon" <br*********@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
JB,

You can use the IL round tripping technique.

ildasm yourassembly.dll /out=yourassembly.il
ilasm yourassembly.il /res=yourassembly.res /key=yourkey.snk /dll

Basically what's happening is you decompile the assembly to an IL
source file using ildasm then you recompile with ilasm while also
specifying a key file.

Brian

Janiek Buysrogge wrote:
>Hi,

In my ActiveX component, which is written in .NET, I use a couple of
GUI libraries I found on the net, with nicer group boxes and buttons.

For using .NET assemblies as ActiveX components you must register them
for COM and then add them to the GAC (I'm sure many people know this)

I can sign my own assemblies before I add them with gacutil, but what
about these dll's I don't have the source of ? I can't sign these and
GAC only accepts strong named dll's.

Any advice is welcome,

JB

Sep 5 '06 #3
Noah,

Yes. That's what I'm saying.

Brian

Noah Sham wrote:
So what your saying is that if I have someones assembly that is not strongly
named I can just disassemble the exe/dll and reassemble with my own key?
Sep 5 '06 #4

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

Similar topics

6
by: Ayende Rahien | last post by:
I'm trying to build my application with a strong name, but I get this errors: error CS1577: Assembly generation failed -- Referenced assembly 'AxInterop.SHDocVw' does not have a strong name ...
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...
3
by: Joel Leong | last post by:
I wish to know the industrial practices for signing assemblies with key files. I genereted a key file to sign my assemblies. Should I sign all my assemblies with a single key files or I shall...
6
by: MoriCristian | last post by:
Just a question. If i have an app with a dll version 1.5 and I replace it with version 1.6 everithing works fine. If i change the strong name however the app crash, but this is fine. My curiosity...
2
by: Henrik Skak Pedersen | last post by:
Hello, I have a class which is beeing serialized/deserialized using the BinaryFormatter class. That has been working with no problems until I signed all my assemblies. Now I get a...
1
by: Jason Richmeier | last post by:
I have encountered an error while attempting to sign an assembly. I have become quite frustrated since I seem to be going in circles and making no progress. Hopefully someone will have the magic...
0
by: Raffi Basmajian | last post by:
I am trying to understand the difference between signing ClickOnce manifests and signing shared assemblies. My company is building .Net 2005 WinForm applications for internal company use only....
0
by: Krish | last post by:
In .Net we can do digital signing of files. Visual studio provides easy means of doign this. I also know that there is Authenticode signing which gives one more level of security as it gives...
0
by: =?Utf-8?B?d29taW4=?= | last post by:
Hello, I have a software that I sign with a trusted certificate from Verisign (both the assemblies and the MSI packages) following Microsoft recomendations. In most of the cases I install the...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.