Forum Discussion

didonato's avatar
didonato
Creator II
8 years ago

Error in Method (attach file in email)

(Error) Server Error: The remote name could not be resolved: 'myservername.com' We have a method that gets triggered from a workflow. This method sends a email with a attachment. I highlighted the section in the method that is causing the problem. This section worked fine in our LIVE database, the problem occurs in our development server that we just stood up. // { // string[] fileArr = new string[docFile.getItemCount()]; // for (int i=0;i<docFile.getItemCount();i++) // { // Item f = docFile.getItemByIndex(i).getRelatedItem(); // f.checkout(tempDir); // string sAttach =tempDir + f.getProperty("filename"); // System.Net.Mail.Attachment myAttachment = new // System.Net.Mail.Attachment(sAttach); // MyMessage.Attachments.Add(myAttachment); // fileArr=sAttach; // } // CCO.Email.setup_smtpmail_server_and_send(MyMessage); // System.Threading.Thread.Sleep(2000); // MyMessage.Attachments.Dispose(); // for (int j=0;j<docFile.getItemCount();j++) // { // FileInfo fileInfo = new FileInfo(fileArr); // fileInfo.Delete(); // } // }  

3 Replies

  • Maybe you use wrong settings for the Mail Server in the InnovatorServerConfig.xml of the test system?
  • It's the same, funny thing is when I run this on the actual server it works. It's when I access from other computers it fails. Only fails when there's a attachment.
  • If I log into Aras using my IP address instead of the name it works. 000.00.100.4/.../Innovator.aspx Is there some kind of setting I need to adjust on Aras??