Error compiling code error BC2000: compiler initialization failed unexpectedly: Project already has a reference to assembly

orchestrator
studio
resources

#1

I am trying to invoke a vb.net code for sending mail and trying to run this workflow from Orchestrator.
Please find below the vb.net code

Dim mailClient As New System.Net.Mail.SmtpClient(“10.228.134.58”, 25)
Dim mailMessage As New System.Net.Mail.MailMessage()
mailMessage.To.Add("sample@sample.com")
mailMessage.Subject = “Test mail”
mailMessage.From = New MailAddress("sample2@sample.com", “Sample”)
mailMessage.IsBodyHtml = True
mailMessage.Body = “test mailll”
mailClient.UseDefaultCredentials = False
mailClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
mailClient.Send(mailMessage)

But I am getting the below exception.

message: Invoke code : Error compiling code error BC2000: compiler initialization failed unexpectedly: Project already has a reference to assembly UiPath.Cognitive.Activities.Design.resources. A second reference to ‘C:\Users\maria.admin.nuget\packages\uipath.cognitive.activities\2.1.6863.31992\lib\net45\fr\UiPath.Cognitive.Activities.Design.resources.dll’ cannot be added. At line -27


#2

Hi @maria.josephina

See this post:


#3

Thankyou.


#4

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.