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

Cannot add a dll to reference

Hi all,

I meet a problem in building my .Net Solution and I would like to seek help.
After I have added a dll to reference in one of my project in my solution,
when I re-build the solution, I meet the following error :

------ Rebuild All started: Project: OIDCOMMON, Configuration: Debug .NET
------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' does
not have a strong name
Building satellite assemblies...
Satellite assemblies could not be built because the main project output is
missing.
------ Rebuild All started: Project: OIDDAL, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OIDBLL, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OID, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' does
not have a strong name
Building satellite assemblies...

------ Skipped Rebuild All: Project: OIDSetup, Configuration: Debug ------

Project configuration skipped because it is not selected in this solution
configuration
---------------------- Done ----------------------

Rebuild All: 0 succeeded, 4 failed, 1 skipped

=================================================

Thanks.
W.M. Chung
Jul 21 '05 #1
4 6113
Hi,

You have to create a strong name for referenced assemblies. To create a
strong named assembly you need to have a strong key file (key pair for
generating strong name). Use the command utility to create a key file: Sn -k
<destination_file> . Then open AssemblyInfo.cs(.vb) and add the following
line to it: [assembly: AssemblyFile("")]
--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"WM Chung" <WM Ch***@discussions.microsoft.com> je napisal v sporočilo
news:06**********************************@microsof t.com ...
Hi all,

I meet a problem in building my .Net Solution and I would like to seek
help.
After I have added a dll to reference in one of my project in my solution,
when I re-build the solution, I meet the following error :

------ Rebuild All started: Project: OIDCOMMON, Configuration: Debug .NET
------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...
Satellite assemblies could not be built because the main project output is
missing.
------ Rebuild All started: Project: OIDDAL, Configuration: Debug
.NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OIDBLL, Configuration: Debug
.NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OID, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Skipped Rebuild All: Project: OIDSetup, Configuration: Debug ------

Project configuration skipped because it is not selected in this solution
configuration
---------------------- Done ----------------------

Rebuild All: 0 succeeded, 4 failed, 1 skipped

=================================================

Thanks.
W.M. Chung

Jul 21 '05 #2
Hello, thanks for your reply.

I think I have done what you mention. The problem is that after I add a
"ftp.dll" in my reference, the solution cannot be built.

But without the "ftp.dll", my solution can be built successfully.

So, how can I use the "ftp.dll" ?

Thanks in advance.

"Peter Jausovec" wrote:
Hi,

You have to create a strong name for referenced assemblies. To create a
strong named assembly you need to have a strong key file (key pair for
generating strong name). Use the command utility to create a key file: Sn -k
<destination_file> . Then open AssemblyInfo.cs(.vb) and add the following
line to it: [assembly: AssemblyFile("")]
--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"WM Chung" <WM Ch***@discussions.microsoft.com> je napisal v sporoèilo
news:06**********************************@microsof t.com ...
Hi all,

I meet a problem in building my .Net Solution and I would like to seek
help.
After I have added a dll to reference in one of my project in my solution,
when I re-build the solution, I meet the following error :

------ Rebuild All started: Project: OIDCOMMON, Configuration: Debug .NET
------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...
Satellite assemblies could not be built because the main project output is
missing.
------ Rebuild All started: Project: OIDDAL, Configuration: Debug
.NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OIDBLL, Configuration: Debug
.NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OID, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Skipped Rebuild All: Project: OIDSetup, Configuration: Debug ------

Project configuration skipped because it is not selected in this solution
configuration
---------------------- Done ----------------------

Rebuild All: 0 succeeded, 4 failed, 1 skipped

=================================================

Thanks.
W.M. Chung


Jul 21 '05 #3
I finally can re-build the solution. I add the ftp.dll as reference to my
main startup project. Now it works.

It does not work when I add it as reference to other projects in my solution.

Thanks.

"WM Chung" wrote:
Hello, thanks for your reply.

I think I have done what you mention. The problem is that after I add a
"ftp.dll" in my reference, the solution cannot be built.

But without the "ftp.dll", my solution can be built successfully.

So, how can I use the "ftp.dll" ?

Thanks in advance.

"Peter Jausovec" wrote:
Hi,

You have to create a strong name for referenced assemblies. To create a
strong named assembly you need to have a strong key file (key pair for
generating strong name). Use the command utility to create a key file: Sn -k
<destination_file> . Then open AssemblyInfo.cs(.vb) and add the following
line to it: [assembly: AssemblyFile("")]
--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"WM Chung" <WM Ch***@discussions.microsoft.com> je napisal v sporoèilo
news:06**********************************@microsof t.com ...
Hi all,

I meet a problem in building my .Net Solution and I would like to seek
help.
After I have added a dll to reference in one of my project in my solution,
when I re-build the solution, I meet the following error :

------ Rebuild All started: Project: OIDCOMMON, Configuration: Debug .NET
------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...
Satellite assemblies could not be built because the main project output is
missing.
------ Rebuild All started: Project: OIDDAL, Configuration: Debug
.NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OIDBLL, Configuration: Debug
.NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Rebuild All started: Project: OID, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP'
does
not have a strong name
Building satellite assemblies...

------ Skipped Rebuild All: Project: OIDSetup, Configuration: Debug ------

Project configuration skipped because it is not selected in this solution
configuration
---------------------- Done ----------------------

Rebuild All: 0 succeeded, 4 failed, 1 skipped

=================================================

Thanks.
W.M. Chung


Jul 21 '05 #4
Hi,

Is this ftp.dll a .NET Assembly? If so then rebuild this assembly using a
strong name for that and your problem will be resolved.

Else if this is a com dll then you will still need to create one more Key
Pair file using sn.exe (as you have alredy created).
Copy this newly created keypair file in the project folder
Open the project property dialog box.
Navigate to "Common Properties", "General".
Enter the name of the snk file in front of the option that reads like ...
"Wrapper Assembly Key File"
Now compile your prioject and it should work.

Remember you will have to set this name for all the project that refer the
ftp.dll (you can use the same key pair file)

Regards
Niloday
"WM Chung" <WM*****@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
I finally can re-build the solution. I add the ftp.dll as reference to my
main startup project. Now it works.

It does not work when I add it as reference to other projects in my solution.
Thanks.

"WM Chung" wrote:
Hello, thanks for your reply.

I think I have done what you mention. The problem is that after I add a
"ftp.dll" in my reference, the solution cannot be built.

But without the "ftp.dll", my solution can be built successfully.

So, how can I use the "ftp.dll" ?

Thanks in advance.

"Peter Jausovec" wrote:
Hi,

You have to create a strong name for referenced assemblies. To create a strong named assembly you need to have a strong key file (key pair for
generating strong name). Use the command utility to create a key file: Sn -k <destination_file> . Then open AssemblyInfo.cs(.vb) and add the following line to it: [assembly: AssemblyFile("")]
--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"WM Chung" <WM Ch***@discussions.microsoft.com> je napisal v sporočilo
news:06**********************************@microsof t.com ...
> Hi all,
>
> I meet a problem in building my .Net Solution and I would like to seek > help.
> After I have added a dll to reference in one of my project in my solution, > when I re-build the solution, I meet the following error :
>
> ------ Rebuild All started: Project: OIDCOMMON, Configuration: Debug ..NET > ------
>
> Preparing resources...
> Updating references...
> Performing main compilation...
> vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' > does
> not have a strong name
> Building satellite assemblies...
> Satellite assemblies could not be built because the main project output is > missing.
>
>
> ------ Rebuild All started: Project: OIDDAL, Configuration: Debug
> .NET ------
>
> Preparing resources...
> Updating references...
> Performing main compilation...
> vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' > does
> not have a strong name
> Building satellite assemblies...
>
>
>
> ------ Rebuild All started: Project: OIDBLL, Configuration: Debug
> .NET ------
>
> Preparing resources...
> Updating references...
> Performing main compilation...
> vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' > does
> not have a strong name
> Building satellite assemblies...
>
>
>
> ------ Rebuild All started: Project: OID, Configuration: Debug ..NET ------ >
> Preparing resources...
> Updating references...
> Performing main compilation...
> vbc : error BC30145: Unable to emit assembly: Referenced assembly 'FTP' > does
> not have a strong name
> Building satellite assemblies...
>
>
>
> ------ Skipped Rebuild All: Project: OIDSetup, Configuration: Debug ------ >
> Project configuration skipped because it is not selected in this solution > configuration
>
>
> ---------------------- Done ----------------------
>
> Rebuild All: 0 succeeded, 4 failed, 1 skipped
>
> =================================================
>
> Thanks.
> W.M. Chung
>
>

Jul 21 '05 #5

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

Similar topics

8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
5
by: George Copeland | last post by:
This is a request for help fixing a SQL Server 2000/ADO problem on Windows XP. I would appreciate any useful assistance. PROBLEM: SQL Server access on my machine fails as follows: 1. All of...
8
by: Carel Lotz | last post by:
H We have ported our VB 6 application into VB .NET but are still integrating with a few COM + applications written in VB6 running on our application server (Win 2000 Server). We have the proxies...
8
by: Robert | last post by:
Hello all, Why reference cannot be able to represent a NULL object? Best regards, Robert
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
0
by: meng | last post by:
hi, in my vc++.net project using vs.net2003, i have 1 project where i defined an __gc __interface called Iface compiled to a Iface.dll and in another project which reference Iface.dll, there is a...
3
by: Dave | last post by:
Greetings, I have a user control in my web form. I cannot reference it in code. My HTML File has the header: <%@ Register TagPrefix="PLB" Tagname="PIPSidebar" src="ProjectListSidebar.ascx"...
4
by: WM Chung | last post by:
Hi all, I meet a problem in building my .Net Solution and I would like to seek help. After I have added a dll to reference in one of my project in my solution, when I re-build the solution, I...
7
by: George Jordanov Ivanov | last post by:
Folks, I have to design the WSDL files of a bunch of XML Web Services. But, unfortunately, I am not very keen on writing the WSDL file line by line, and moreover be aware of the whole standard...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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?
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
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,...

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.