473,654 Members | 3,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6133
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_fi le> . 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***@discussio ns.microsoft.co m> je napisal v sporočilo
news:06******** *************** ***********@mic rosoft.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_fi le> . 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***@discussio ns.microsoft.co m> je napisal v sporoèilo
news:06******** *************** ***********@mic rosoft.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_fi le> . 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***@discussio ns.microsoft.co m> je napisal v sporoèilo
news:06******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:4E******** *************** ***********@mic rosoft.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_fi le> . 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***@discussio ns.microsoft.co m> je napisal v sporočilo
news:06******** *************** ***********@mic rosoft.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
50562
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 = WScript.CreateObject("WScript.Network") sPwd = inputbox("Enter password") WshNetwork.MapNetworkDrive "J:", "\\server1\data", false, "xyz_net\John", sPwd Msgbox "Drives has been map successful"
5
9537
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 my VB6 apps reference the following ADO typelib: Microsoft ActiveX Data Objects 2.7 Library Located at: c:\Program Files\Common Files\System\ADO\msado27.tlb
8
775
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 to link to the application server installed but we every now and then get a error when we try to make a call to a component running on the app server. The error message is something like Object reference not set to an instance of an objec at...
8
2469
by: Robert | last post by:
Hello all, Why reference cannot be able to represent a NULL object? Best regards, Robert
8
5462
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
0
1300
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 MyClass that derives from the Iface. however, i am getting this error C2504: 'Iface' : base class undefined' i understand the error, but cannot understand why the compiler cannot find Iface.dll. Codes snapshot:
3
5370
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" %> and references the User Control... <PLB:PIPSIDEBAR id="PIPSIDEBAR1" runat="server"></PLB:PIPSIDEBAR>
4
1969
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 meet the following error : ------ Rebuild All started: Project: OIDCOMMON, Configuration: Debug .NET ------ Preparing resources...
7
6997
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 specification in details. I will be very happy if there is a visual tool, which can do this for me. Does anyone know such kind of tool (if it is free, this is going to be awesome)? Thanks in advance. Regards,
0
8815
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...
1
8482
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,...
0
8593
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
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
5622
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
4149
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
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.