Reference Aspose.Network Assembly in a Dll imported in a project

Hello.
I have a question about Aspose.Network Referencing.

I have a project with one class cMail. It is referenced Aspose.Network 6.4
cMail has some public properties, for example:

-------------------------------------------------------
Public Property DestinatarioA() As List(Of MailAddress)
Get
Return m_DestinatarioA
End Get
Set(ByVal value As List(Of MailAddress))
m_DestinatarioA = value
End Set
End Property

Public Property DestinatarioCC() As List(Of MailAddress)
Get
Return m_DestinatarioCC
End Get
Set(ByVal value As List(Of MailAddress))
m_DestinatarioCC = value
End Set
End Property

and some methods to add mail addresses:
Public Sub inserisciMittente(ByVal indirizzo As String)
If Not String.IsNullOrEmpty(indirizzo) Then
m_Mittente = New MailAddress(indirizzo)
End If

End Sub

Public Sub inserisciDestinatarioA(ByVal indirizzo As String)
If Not String.IsNullOrEmpty(indirizzo) Then
For Each ind In indirizzo.Split(";")
If IsValidEmail(ind) Then
m_DestinatarioA.Add(New MailAddress(ind))
End If
Next
End If
End Sub
-------------------------------------------
then, I have a method to send mail.
I compile this project and it is create Utility.dll

Then, I have another project and I reference Utility.dll.
When I try to view DestinatarioA or DestinatarioCC values, visual studio raise an error:
“Necessario riferimento all’assembly ‘Aspose.Network, Version=6.4.0.0, Culture=neutral, PublicKeyToken=ad504e9f0d34714a’ contenente il tipo ‘Aspose.Network.Mail.MailAddress’. Aggiungerne uno al progetto” translate in english
"Necessary reference to assembly ‘Aspose.Network, Version = 6.4.0.0, Culture = neutral, PublicKeyToken = ad504e9f0d34714a containing type ‘Aspose.Network.Mail.MailAddress. Add to a project."

I try to reference also Aspose.Network in my new project but same error.

How Can I solve? thanks

Hi,

Thank you for inquiry.

A reference to Aspose.Network dll is required wherever it’s classes are used. You already added the reference, but perhaps you did not included the import Aspose.Network.Email or related statements.

I have attached a sample project similar to your requirements. I hope it helps.