473,320 Members | 2,161 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,320 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 6110
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.