When creating a folder in web mail a .NET error is returned


SYMPTOMS

When creating a folder in web mail a .NET error is returned.

The error that is returned will be something like the following;

========================================================

Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that <machineKey> configuration specifies the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Validation of viewstate MAC
failed. If this application is hosted by a Web Farm or cluster, ensure that
<machineKey> configuration specifies the same validationKey and validation
algorithm. AutoGenerate cannot be used in a cluster.

========================================================

If you see the error below then you will need to use the details in the following article to see what the full .NET error is;

http://www.mailenable.com/kb/content/article.asp?ID=ME020460

--------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
--------------------------------------------------------------------------

RESOLUTION

The resolution is to upgrade to the latest version of MailEnable version 3.61 and later contain fixes for this issue.

WORKAROUND

The work around for this problem is to edit the MailEnable web mail pages directly.  The directions for this are;

Version 2.X of MailEnable

Open the following file in Notepad;

\Program Files\Mail Enable\bin\NETWebmail\enterprise\lang\sys\Forms\ManageFolders.aspx

In the file find and delete the following string

ACTION="ManageFolder.aspx"

From this line (line 111);

<FORM NAME="MyForm" METHOD="post" ACTION="ManageFolder.aspx" runat="server" ID="Form1">

Example Before line:

<FORM NAME="MyForm" METHOD="post" ACTION="ManageFolder.aspx" runat="server" ID="Form1">

Example After line:

<FORM NAME="MyForm" METHOD="post" runat="server" ID="Form1">

MORE INFORMATION

If you are running multiple languages you will need to either change this line in each language folder or reload the pages using the Translation Utility. 

Example paths:

Dutch

D:\Program Files\Mail Enable\bin\NETWebMail\HooDoo\lang\de\Forms

Spanish

Program Files\Mail Enable\bin\NETWebMail\HooDoo\lang\es\Forms

If you have created your own web mail translations or are familiar with the Translation Utility then you can use this to reload the pages after the first change in the SYS folder is completed above.  This will have the correcting update effect on the page as the reloading of the page loads from the base file in the SYS folder (workaround section above).

REFERENCES

Showing full .NET error in web mail

http://www.mailenable.com/kb/content/article.asp?ID=ME020460

Language Migration Utility

http://www.mailenable.com/kb/content/article.asp?ID=ME020165



Product:MailEnable (All Versions)
Category:Other
Article:ME020525
Module:WebMail
Keywords:create,folder,error,web,mail
Class:BUG: Product Defect/Bug
Revised:Wednesday, May 4, 2016
Author:
Publisher:MailEnable