For some reason, since updating do version 18.1.0, the AjaxFileUpload control no longer allows uploading of .msg or .eml files. I have both listed in the Allowed File List, and am able to upload all different types of files for a long while now... but MSG
and EML throw an error message in the control. if I renamed .msg to .msg.txt its fine.. I'm baffled.
For some reason, since updating do version 18.1.0, the AjaxFileUpload control no longer allows uploading of .msg or .eml files. I have both listed in the Allowed File List, and am able to upload all different types of files for a long while now... but MSG and
EML throw an error message in the control. if I renamed .msg to .msg.txt its fine.. I'm baffled.
According to your description, I suggest you could add below webconfig in your application to allow msg files.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Description:An exception occurred while processing your request. Additionally, another exception occurred while executing the custom
error page for the first exception. The request has been terminated.
Other AjaxToolKit entries in web config
<system.web>
<!-- trust level="Full"/ --> (Had added this from another post, but did not help)
Nevermind, I found my error (sorry).. upon installation of the html sanitizer, the installer had included another web config entry at the very bottom of the file, so I merged the two and now it works perfectly again. THANK YOU!
None
0 Points
3 Posts
AjaxFileUpload and file types *.MSG and/or *.EML
Sep 17, 2018 11:13 PM|JohnDoranNY|LINK
For some reason, since updating do version 18.1.0, the AjaxFileUpload control no longer allows uploading of .msg or .eml files. I have both listed in the Allowed File List, and am able to upload all different types of files for a long while now... but MSG and EML throw an error message in the control. if I renamed .msg to .msg.txt its fine.. I'm baffled.
Star
9831 Points
3120 Posts
Re: AjaxFileUpload and file types *.MSG and/or *.EML
Sep 18, 2018 06:07 AM|Brando ZWZ|LINK
Hi JohnDoranN,
According to your description, I suggest you could add below webconfig in your application to allow msg files.
Then it will work well.
More details, you could refer to below article:
https://github.com/DevExpress/AjaxControlToolkit/wiki/AjaxFileUpload-setup#allowed-file-extensions
Best Regards,
Brando
None
0 Points
3 Posts
Re: AjaxFileUpload and file types *.MSG and/or *.EML
Sep 18, 2018 04:42 PM|JohnDoranNY|LINK
Sadly, that is still not working. When I add (under <configuration>)
<configuration>
<configSections>
<section name="ajaxControlToolkit" type="AjaxControlToolkit.AjaxControlToolkitConfigSection, AjaxControlToolkit" requirePermission="false"/>
</configSections>
<ajaxControlToolkit additionalUploadFileExtensions="xlt,temp,dwg,msg" />
<configProtectedData>....
I get:
Server Error in '/' Application.
Runtime Error
Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.
Other AjaxToolKit entries in web config
<system.web>
<!-- trust level="Full"/ --> (Had added this from another post, but did not help)
<httpHandlers>
<add verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" />
</httpHandlers>
<pages theme="default" enableEventValidation="false" validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>....
None
0 Points
3 Posts
Re: AjaxFileUpload and file types *.MSG and/or *.EML
Sep 18, 2018 04:52 PM|JohnDoranNY|LINK
Nevermind, I found my error (sorry).. upon installation of the html sanitizer, the installer had included another web config entry at the very bottom of the file, so I merged the two and now it works perfectly again. THANK YOU!
<ajaxControlToolkit additionalUploadFileExtensions="eml,msg" htmlSanitizer="AjaxControlToolkit.HtmlEditor.Sanitizer.DefaultHtmlSanitizer, AjaxControlToolkit.HtmlEditor.Sanitizer" />