Answer
PROBLEM
When trying to access parts of the GFI MailEssentials user interface, you get one of the following errors:HTTP 404 Not Found Error
Could not communicate with middle layer
System.Web.HttpException: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive at System.Web.UI.Page.get_Session() at ContentSecurity.Quarantine.Today3.Page_Load(Object sender, EventArgs e)
ENVIRONMENT
- GFI MailEssentials
- Microsoft SharePoint 3.0
- Microsoft SharePoint Portal Server 2007
- all supported environments
SOLUTION
Different solutions are provided for each version of Microsoft SharePoint. Please use the solution for your version of Microsoft SharePoint.- Microsoft SharePoint Services Version 2.0 or Microsoft SharePoint Server 2003
- Microsoft SharePoint Services Version 3.0 or Microsoft SharePoint Server 2007
There are two solutions to this issue. Only one of these solutions needs to be implemented to resolve the issue.
Solution 1:- Configure an exclusion for GFI MailEssentials in Microsoft SharePoint. Microsoft SharePoint and Microsoft SharePoint Portal Server need to be configured not to intercept requests to the GFI MailEssentials web application. Such requests need to be handled by Microsoft Internet Information Services (IIS). This can be done as follows:
- Open Microsoft SharePoint Central Administration. (Start > Administrative Tools > SharePoint Central Administration)
- In the Virtual Server Configuration area, click Configure virtual server settings
- In the Virtual Server List tab, select the virtual server that you have GFI MailEssentials installed on
- Under Virtual Server Management, select Define Managed Paths
- In the Add a New Path section, type the name of the virtual directory that GFI MailEssentials is installed on, in the Path box. The default value is MailEssentials.
- Click on Excluded Path, and then click OK
- Browse to the <...\GFI\MailEssentials\WwwConf\> directory.
- Create a backup of web.config
- Open web.config in notepad or another text editor
-
Find the line
- <!-- add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->
-
Remove the text in bold from the line above. The line should read:
- <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
- Close web.config, and save the changes
- Try to re-open the GFI MailEssentials configuration and access the 'Today Quarantine' filter to ensure that the issue is resolved
Solution 2:- Install GFI MailEssentials to a Web Site where Microsoft SharePoint is not installed. An alternative to creating an exclusion for GFI MailEssentials in Microsoft SharePoint is to install GFI MailEssentials to a Web Site where Microsoft SharePoint is not installed.
- Create a new website in Microsoft Internet Information Services (IIS), and make sure that Microsoft SharePoint is not installed on this website
- Use the GFI MailSecurity or MailEssentials switchboard, to change the website from the website in which the application is installed with to the one that does not have Microsoft SharePoint installed on it
- Make sure that web.config found in the wwwconf folder is the original one, and no changes have been done to it
- Open the GFI MailEssentials configuration.
- Information on how to create a new website in Microsoft Internet Information Services (IIS) can be found at: http://support.microsoft.com/kb/816576/en-us.
- If an existing website that does not have Microsoft SharePoint installed on it exists, it is possible to re-use it, rather then create a new one.
There are two solutions to this issue. Only one of these solutions needs to be implemented to resolve the issue.
Solution 1:- Remove the Wildcard Application Mappings for GFI MailEssentials Microsoft SharePoint and Microsoft SharePoint Portal Server need to be configured not to intercept every request before the requested page is sent to the GFI MailEssentials web application. Such requests need to be handled by Microsoft Internet Information Services (IIS). This can be done as follows:
- Open the Internet Information Services (IIS) Manager.
- Browse to Websites and locate the website used by GFI MailEssentials
- Right click the GFI MailEssentials virtual directory and select Properties.
- In the Virtual Directory tab click the Configuration button.
- Remove any entries from the Wildcard application maps section.
- Click on OK to apply the changes.
- The procedure above needs to be repeated every time GFI MailEssentials is installed as a fresh installation.
- Create a new website in Microsoft Internet Information Services (IIS), and make sure that Microsoft SharePoint is not installed on this website
- Use the GFI MailEssentials switchboard, to change the website from the website in which GFI MailEssentials is installed with the one that does not have Microsoft SharePoint installed on it
- Make sure that web.config found in the wwwconf folder is the original one, and no changes have been done to it
- Open the GFI MailEssentials configuration.
- Information on how to create a new Web site in Microsoft Internet Information Services (IIS) can be found at: http://support.microsoft.com/kb/816576/en-us.
- If there is an existing website that does not have Microsoft SharePoint installed on it, it is possible to use it, rather then create a new one.