Issue | Issues:
- Images do not appear in the notification.
- Error message from logs: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF.
- From IIS Manager, confirmed the company_files, API, and WS are set to Anonymous Authentication. The Archer Service account has full access to company_files location.
The following sample exception is from the Archer JobFramework logs.
<ApplicationData> <TraceData> <DataItem> <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"> <TraceIdentifier>ArcherTech.Notifications</TraceIdentifier> <Description>Error loading the bytes for an embedded image in the email generated for notification template 'Sample notification' with id = '240'.</Description> <AppDomain>ArcherTech.JobFramework.Job.exe</AppDomain> <Exception> <ExceptionType>ArcherTech.Common.Exceptions.ImageLoadingNotificationException, ArcherTech.Common, Version=5.5.40200.1016, Culture=neutral, PublicKeyToken=null</ExceptionType> <Message>Error loading the bytes for an embedded image in the email generated for notification template 'Sample notification' with id = '240'.</Message> <Source /> <ContextData> <Resolution>Please verify that you have access to the location where the image is stored. For further support, please contact your system administrator.</Resolution> <ImageName>Samplefile.PNG</ImageName> <ImagePath>https://servername/company_files/50000/icons/Samplefile.PNG</ImagePath> </ContextData> <StackTrace /> <InnerException> <ExceptionType>System.Net.WebException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType> <Message>The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF</Message> <Source>System</Source> <StackTrace> at System.Net.HttpWebRequest.GetResponse() at ArcherTech.Notifications.ExtensionMethods.EmailMessageExtensionMethods.GetImage(SessionContext sessionContext, KeyValuePair`2 imageName, Notification notification) </StackTrace> </InnerException> </Exception> </TraceRecord> </DataItem> </TraceData> </ApplicationData> |