Email Attachments

Hi,



When viewing the email bellow the viewer won’t display the attachments, just a loading icon.



The server’s event returns a:

Exception type: FileNotFoundException



Can you please have a look?



Thanks.

Antonio

Hello Antonio,

We are sorry to hear that you have this issue. We obtained and investigated the “test email for attachments.msg” file. It has 6 attachments: 2 Excel, 2 PDF, and 2 Word. GroupDocs.Viewer displays all of them in correct order in both image-based and HTML-based rendering modes along with the mail body. We did not find anything suspicious.

We used the latest version 2.4.0. maybe you are using some obsolete versions?

If no, please:
1) Describe your project: what type (WebForms or MVC), what web-server are you using?
2) Provide us a part of source code where GroupDocs.Viewer widget is initialized.
3) Maybe, there is something special in your particular use-case of how you use GroupDocs.Viewer? If yes, then it can shed light on this issue.

Thanks and waiting for your reply.

Hi Denis,



Here is the source code:

protected void fileload(string filesave, Boolean downloada, Boolean printf )

{

fuser.Value = filesave;

string inlineDocPreviewScript = Viewer.ClientCode()

.TargetElementSelector("#test")

.FilePath(filesave)

.EnableRightClickMenu(false)

.SupportTextSelection(false)

.ShowThumbnails(true)

.OpenThumbnails(false)

.ShowFolderBrowser(false)

.SupportPageRotation(true)

//.MinimumImageWidth(100)

.BackgroundColor(“gray”)

.ShowSearch(true)

//.ShowPrint(true)

.ShowPaging(true)

.ShowDownload(downloada)

.ShowPrint(printf)

//.ShowSearch(false)

.PreloadPagesCount(10)

.ZoomToFitWidth()

.ToString();



BodyControl.Controls.Add(new Literal() { Text = inlineDocPreviewScript });



}





}





The web.config:



<?xml version="1.0"?>





<system.web>





</system.web>

<system.webServer>



































</system.webServer>







Thanks

Hi Denis,



I’ve just tried the same file with version 2.1.0 and no problems.



Thanks.

Antonio

the error:

Event xmlns=http://schemas.microsoft.com/win/2004/08/events/event

1309
3
3
0x80000000000000

155885
Application
ANTONIOPC.document-genetics.co.uk

3005
An unhandled exception has occurred.
30/10/2014 13:56:42
30/10/2014 13:56:42
680153b1fc164263b433b0d84bc204a8
22
1
0
/LM/W3SVC/25/ROOT-1-130591509954083379
Full
/
F:\Projects\GDViewer\infoViewer\infoViewer\
ANTONIOPC

4248
iisexpress.exe
HALLFARM\antonio.almeida
FileNotFoundException
Could not find file ‘F:\Projects\GDViewer\infoViewer\infoViewer\Files\temp\Cache\1.msg\2014-10-23T18_02_15\100@150x\page_5.jpg’. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.File.OpenRead(String path) at Groupdocs.Storage.LocalFileStorage.GetFile(String path)
http://localhost:29603/document-viewer/GetDocumentPageImageHandler?path=1.msg&width=150&quality=100&usePdf=False&watermarkText=&watermarkColor=&watermarkPosition=Diagonal&watermarkFontSize=0&useHtmlBasedEngine=False&pageIndex=5
/document-viewer/GetDocumentPageImageHandler
::1

False

HALLFARM\antonio.almeida
11
HALLFARM\antonio.almeida
False
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.File.OpenRead(String path) at Groupdocs.Storage.LocalFileStorage.GetFile(String path)

Hello Antonio,

We’ve downloaded and investigated your project, and were able to reproduce the issue. It is a bug inside the GroupDocs.Viewer and our developers have begun to work on it. However there is an intermediate solution for fixing it - change the “.SupportTextSelection(false)” to the “.SupportTextSelection(true)”. Of course, this may be unacceptable for yours business-logics, but this intermediate trick solves the problem with HTTP 500 responses for the page thumbnails.

We will notify you in this forum thread when this bug will be fixed.