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

Strong Name a compiled assembly?

Hi All,

Would anyone mind going over how to strong name an assembly after it
has been compiled? I was looking at AL.exe, but it won't take in .dll
files. I'm not sure if I can strip out the module part of the dll.
Any help is appreciated.

Thanks!
James
Jun 27 '08 #1
4 4203
When you say, it won't take in .dll, what you mean what happen when you try
to link them. Normally the strong name compose of
<<namespace>>.<<classname>>

Nirosh.

"james" <ja********@gmail.comwrote in message
news:1d**********************************@26g2000h sk.googlegroups.com...
Hi All,

Would anyone mind going over how to strong name an assembly after it
has been compiled? I was looking at AL.exe, but it won't take in .dll
files. I'm not sure if I can strip out the module part of the dll.
Any help is appreciated.

Thanks!
James

Jun 27 '08 #2
Hi Nirosh,

Here is the output from the command:

C:\>al /out:Signed_CarlosAg.ExcelXmlWriter.dll
CarlosAg.ExcelXmlWriter.dll /keyfile:MyKey.snk
Microsoft (R) Assembly Linker version 8.00.50727.42
for Microsoft (R) Windows (R) .NET Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2003. All rights reserved.

ALINK: warning AL1020: Ignoring included assembly
'c:\web\b52net\trunk\lib\CarlosAg.ExcelXmlWriter.d ll'
ALINK: error AL1016: No valid input files were specified

C:\>

Thanks,
James
On Apr 29, 2:41 pm, "Nirosh" <Nir...@News.Comwrote:
When you say, it won't take in .dll, what you mean what happen when you try
to link them. Normally the strong name compose of
<<namespace>>.<<classname>>

Nirosh.

"james" <james.w...@gmail.comwrote in message

news:1d**********************************@26g2000h sk.googlegroups.com...
Hi All,
Would anyone mind going over how to strong name an assembly after it
has been compiled? I was looking at AL.exe, but it won't take in .dll
files. I'm not sure if I can strip out the module part of the dll.
Any help is appreciated.
Thanks!
James
Jun 27 '08 #3
I have a one concern

It goes like command [options] [source] - in your case you have the source
in the middle of two options, correct that and check. let me know how that
goes

Nirosh


"james" <ja********@gmail.comwrote in message
news:6d**********************************@m45g2000 hsb.googlegroups.com...
Hi Nirosh,

Here is the output from the command:

C:\>al /out:Signed_CarlosAg.ExcelXmlWriter.dll
CarlosAg.ExcelXmlWriter.dll /keyfile:MyKey.snk
Microsoft (R) Assembly Linker version 8.00.50727.42
for Microsoft (R) Windows (R) .NET Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2003. All rights reserved.

ALINK: warning AL1020: Ignoring included assembly
'c:\web\b52net\trunk\lib\CarlosAg.ExcelXmlWriter.d ll'
ALINK: error AL1016: No valid input files were specified

C:\>

Thanks,
James
On Apr 29, 2:41 pm, "Nirosh" <Nir...@News.Comwrote:
>When you say, it won't take in .dll, what you mean what happen when you
try
to link them. Normally the strong name compose of
<<namespace>>.<<classname>>

Nirosh.

"james" <james.w...@gmail.comwrote in message

news:1d**********************************@26g2000 hsk.googlegroups.com...
Hi All,
Would anyone mind going over how to strong name an assembly after it
has been compiled? I was looking at AL.exe, but it won't take in .dll
files. I'm not sure if I can strip out the module part of the dll.
Any help is appreciated.
Thanks!
James

Jun 27 '08 #4
This is very straight forward I think there is some basic mistake in your
command. Anyway Add this too../main: <<Specifies the fully qualified name
upto class.entrymethod>>also check whether you have a public conrtructor
define for the entry class-- L.W.C. Nirosh"james" <ja********@gmail.com>
wrote in message
news:6d**********************************@m45g2000 hsb.googlegroups.com...
Hi Nirosh,

Here is the output from the command:

C:\>al /out:Signed_CarlosAg.ExcelXmlWriter.dll
CarlosAg.ExcelXmlWriter.dll /keyfile:MyKey.snk
Microsoft (R) Assembly Linker version 8.00.50727.42
for Microsoft (R) Windows (R) .NET Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2003. All rights reserved.

ALINK: warning AL1020: Ignoring included assembly
'c:\web\b52net\trunk\lib\CarlosAg.ExcelXmlWriter.d ll'
ALINK: error AL1016: No valid input files were specified

C:\>

Thanks,
James
On Apr 29, 2:41 pm, "Nirosh" <Nir...@News.Comwrote:
>When you say, it won't take in .dll, what you mean what happen when you
try
to link them. Normally the strong name compose of
<<namespace>>.<<classname>>

Nirosh.

"james" <james.w...@gmail.comwrote in message

news:1d**********************************@26g2000 hsk.googlegroups.com...
Hi All,
Would anyone mind going over how to strong name an assembly after it
has been compiled? I was looking at AL.exe, but it won't take in .dll
files. I'm not sure if I can strip out the module part of the dll.
Any help is appreciated.
Thanks!
James

Jun 27 '08 #5

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

Similar topics

1
by: John E. | last post by:
How can I compile two projects with a circular reference while giving them a strong name? There is a project that we have that has two components that reference each other e.g. A<->B thus...
20
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article:...
2
by: laimis | last post by:
Hey, So I get the idea of signing the assembly as to prevent any tempering with it (besides the added ability to install it into the GAC). I did a lit exercise myself there I signed the app,...
2
by: Thomas W. Brown | last post by:
If I am using the CSharpCodeProvider to dynamically compile an in-memory assembly from some C# source, do I need to worry about signing this assembly if I'm doing the compilation, instantiation,...
3
by: Patrick Kowalzick | last post by:
Dear NG, I am trying to build a strong named library with Visual C++. -Therefore I am generating a key pair using sn -k strong_name.snk -Create a new Project in the Visual Studio: Visual...
6
by: Manuel Lopez | last post by:
Hello, I have a Web Project (UserControls.dll) with some user controls that is shared by many asp.net web applicattions. What we do is copy UserControls.dll to all the applications bin...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
8
by: per9000 | last post by:
Dear readers, I have some problems with strong keys. What I want to do is basically this. A - create an application (f.x. strongHello.dll) with a strong key. B - import the functions of this...
7
by: Alan T | last post by:
I have create a class library and add it to the reference list in one of the projects. However, when I compile the project and got the error: Assembly generation failed -- Referenced assembly...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.