It was working fine until all of a sudden, it no longer works. Nobody was changing anything.
When I enter the following in my browser:
https://mydomain.com/Microsoft-Server-ActiveSync/
I get:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
But nothing shows in the event log.
If I go to the same URL without ssl (using http://mydomain.com/Microsoft-Server-ActiveSync/)
I do get an error in the event log and it shows .net 2.0. I don't know if this is correct and I don't know where to change it to .net 4. The application shows .net 4.0 as the framework in the configuration. Any ideas how to correct this? Maybe the above is not related?
Active sync failed over the weekend
Re: Active sync failed over the weekend
I changed the application pool from
MailEnableEASPool
to
ASP.NET 4.0
And it started working ... for about 5 hours. Back to the error now. What is going on?
MailEnableEASPool
to
ASP.NET 4.0
And it started working ... for about 5 hours. Back to the error now. What is going on?
Re: Active sync failed over the weekend
Ok, I've concluded that I have to reboot the server every 8 hours or so to get active sync working again. This cannot be normal behavior. Any suggestions?
-
- Site Admin
- Posts: 9738
- Joined: Mon Mar 22, 2004 4:44 am
- Location: Melbourne, Victoria, Australia
Re: Active sync failed over the weekend
Hi,
MailEnable ActiveSync needs to run under the MailEnableEASPool otherwise it fail intermittently like you are seeing. If you were seeing .NET 2.0 Framework errors in the Windows event log prior to making the changes then do this:
1. Revert back to using the MailEanbleEASPool.
2. Open IIS and navigate to the "Application Pools".
3. Locate the MailEnableEASPool and double click it.
4. Set the Framework to 4.0.
5. Next open Windows notepad (run as administrator) and open file and navigate to: Mail Enable\BIN\NetProtocols
6. Open the web.config file and change the lines were it points to the 2.0 Framework paths to the 4.0 Framework paths. See example below:
to:
7. Save the file
8. Restart IIS and check to see if EAS is working and monitor the service for the same behavior.
MailEnable ActiveSync needs to run under the MailEnableEASPool otherwise it fail intermittently like you are seeing. If you were seeing .NET 2.0 Framework errors in the Windows event log prior to making the changes then do this:
1. Revert back to using the MailEanbleEASPool.
2. Open IIS and navigate to the "Application Pools".
3. Locate the MailEnableEASPool and double click it.
4. Set the Framework to 4.0.
5. Next open Windows notepad (run as administrator) and open file and navigate to: Mail Enable\BIN\NetProtocols
6. Open the web.config file and change the lines were it points to the 2.0 Framework paths to the 4.0 Framework paths. See example below:
Code: Select all
<add name="WebServicesHandler64" path="/WebServices/*.asmx" verb="GET,POST" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness64" />
<add name="WebServicesHandler32" path="/WebServices/*.asmx" verb="GET,POST" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness32" />
<add name="MEIISHandler64" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness64" />
<add name="MEIISHandler32" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness32" />
Code: Select all
<add name="WebServicesHandler64" path="/WebServices/*.asmx" verb="GET,POST" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness64" />
<add name="WebServicesHandler32" path="/WebServices/*.asmx" verb="GET,POST" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness32" />
<add name="MEIISHandler64" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness64" />
<add name="MEIISHandler32" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,bitness32" />
8. Restart IIS and check to see if EAS is working and monitor the service for the same behavior.
Regards,
Ian Margarone
MailEnable Support
Ian Margarone
MailEnable Support
Re: Active sync failed over the weekend
I realize it "should" run under that pool but it kept getting that .net 2.0 error. I went to the .net 4 pool just to try and now it seems to be stable. I don't know what might have changed. Perhaps that pool is corrupted somehow. I was tempted to rebuild the pool definition but for now it seems ok. I am a .net programmer so I understand this stuff fairly well. At this point, its working. Odd.
-
- Site Admin
- Posts: 9738
- Joined: Mon Mar 22, 2004 4:44 am
- Location: Melbourne, Victoria, Australia
Re: Active sync failed over the weekend
Hi,
Its not the application pool. Its your 2.0 Framework that is problematic. Have you been installing Windows updates and all service packs for the framework?
Its not the application pool. Its your 2.0 Framework that is problematic. Have you been installing Windows updates and all service packs for the framework?
Regards,
Ian Margarone
MailEnable Support
Ian Margarone
MailEnable Support
Re: Active sync failed over the weekend
Yes all updates. The application says 4.0 in the settings. I don't know where things messed up.