Exchange ASP Version issue

I have Exchange 2013 installed on a 2008R2 server.  All seemed to be working well including OWA, Activesync and EAC until I installed TrendMicro's Scanmail antivirus software.  It seems to have broken IIS.  

When I try to use any of these services I get a page that says "Server Error in '/owa' Application.  The more useful message I get is in the application log.  I am seeing event ID 1310 each time a user or device tries to access the server.  I'll attach the entire message below but the essence of the message is "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. "  I'm thinking the TrendMicro install used older software than Exchange but I don't know how to change it back.

Thanks for any help.

Bill
LVL 1
labdunnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DipakCommented:
0
Patrick BogersDatacenter platform engineer LindowsCommented:
Hi,

Off course Exchange 2013 has no SP3 yet so we need to figger out what else went wrong.
event ID 1310 sounds like a .NET error, can you copy paste the error (and body) from the event logs?
Also i would like to know, what ASP .NET version does the application pool user has which is used for OWA.

Another thing you can try in advance is go to the exchange server, open IIS and browse to your OWA directory. Right click it and select from all tasks, browse. (what error does it show?)
0
labdunnAuthor Commented:
I am using E2013 CU2.  You are right, there is no SP3 for E2013 yet.  Give 'em time.

The test of the event log is a bit lengthly.  I'll attach it as a file.  The results from the Browse are below.  This particular screen is OWA but .ECP, activesync and all the other Exchange/IIS services are afflicted as well.  It seems to be ASP 2.0 causing the problem.

Thanks

Bill


Server Error in '/owa' Application.
--------------------------------------------------------------------------------


Configuration Error
  Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

 Parser Error Message: Unrecognized attribute 'maxUrlLength'. Note that attribute names are case-sensitive.

Source Error:



Line 57:         </assemblies>
Line 58:       </compilation>
Line 59:       <httpRuntime maxUrlLength="500" maxRequestLength="35000" requestValidationMode="2.0" />
Line 60:       <pages validateRequest="false" />
Line 61:       <customErrors defaultRedirect="/owa/auth/errorFE.aspx" mode="RemoteOnly">
 

 Source File:  C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\web.config    Line:  59


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5471
EventID1310.txt
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Patrick BogersDatacenter platform engineer LindowsCommented:
Hi again,

Give em time LOL :)

I have a feeling that IIS APPPOOL\DefaultAppPool has been changed to ASP .NET 2.0
What if you enter IIS -> application pools and switch de defaultapppool to ASP .NET 4, what happens?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
labdunnAuthor Commented:
Hmm.  You might be on to something there.  When I look at the Application Pools, every one of them is using .Net 4.0 except the DefaultAppPool.  I switched it so V4.0, restarted the WWW service and still get an error but it is a different error.

Below is the result in the browser and way below is the entry in the event log.

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

Server Error in '/owa' Application.
--------------------------------------------------------------------------------

Access is denied.
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.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  

Stack Trace:


[SecurityAccessDeniedException: Access is denied.]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14543138
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +622
   Microsoft.Exchange.Data.Directory.TopologyDiscovery.ITopologyClient.GetServersForRole(String partitionFqdn, List`1 currentlyUsedServers, ADServerRole role, Int32 serversRequested) +0
   Microsoft.Exchange.Data.Directory.<>c__DisplayClass10.<InternalServiceProviderGetServersForRole>b__f(IPooledServiceProxy`1 proxy) +145
   Microsoft.Exchange.Net.ServiceProxyPool`1.TryCallServiceWithRetry(Action`1 action, String debugMessage, WCFConnectionStateTuple proxyToUse, Int32 numberOfRetries, Boolean doNotReturnProxyOnSuccess, Exception& exception) +274

[ADTopologyUnexpectedException: Unexpected error when calling the Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)'. Error details: Access is denied..]
   Microsoft.Exchange.Data.Directory.ServiceTopologyProvider.GetConfigDCInfo(String partitionFqdn, Boolean throwOnFailure) +509
   Microsoft.Exchange.Data.Directory.TopologyProvider.PopulateConfigNamingContexts(String partitionFqdn) +289
   Microsoft.Exchange.Data.Directory.TopologyProvider.GetConfigurationNamingContext(String partitionFqdn) +94
   Microsoft.Exchange.Data.Directory.ADSession.GetConfigurationNamingContext(String partitionFqdn) +305
   Microsoft.Exchange.Data.Directory.ADDataSession.GetNamingContext(ADNamingContext adNamingContext) +652
   Microsoft.Exchange.Data.Directory.ADDataSession.GetConnection(String preferredServer, Boolean isWriteOperation, String optionalBaseDN, ADObjectId& rootId, ADScope scope) +678
   Microsoft.Exchange.Data.Directory.ADDataSession.GetReadConnection(String preferredServer, String optionalBaseDN, ADObjectId& rootId, ADRawEntry scopeDeteriminingObject, DualSearchMode dualSearchMode) +196
   Microsoft.Exchange.Data.Directory.ADDataSession.InternalFind(ADObjectId rootId, String optionalBaseDN, ADObjectId readId, QueryScope scope, QueryFilter filter, SortBy sortBy, Int32 maxResults, IEnumerable`1 properties, Boolean includeDeletedObjects) +4048
   Microsoft.Exchange.Data.Directory.SystemConfiguration.ADTopologyConfigurationSession.FindLocalServer() +212
   Microsoft.Exchange.Clients.Owa.Core.OwaVdirConfiguration.CreateInstance() +121
   Microsoft.Exchange.Clients.Owa.Core.OwaVdirConfiguration.get_Instance() +135
   Microsoft.Exchange.HttpProxy.Logon.get_UserNameLabel() +91
   ASP.auth_logon_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) +2374
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363
 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044

=======================================================================
Log Name:      Application
Source:        MSExchange ADAccess
Date:          8/31/2013 12:51:17 PM
Event ID:      4027
Task Category: General
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      MBX.sfimaging.ad
Description:
Process w3wp.exe (PID=24448). WCF request (Get Servers for sfimaging.ad) to the Microsoft Exchange Active Directory Topology service on server (TopologyClientTcpEndpoint (localhost)) failed. Make sure that the service is running. In addition, make sure that the network ports that are used by Microsoft Exchange Active Directory Topology service are not blocked by a firewall. The WCF call was retried 1 time(s). Error Details
 System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Exchange.Data.Directory.TopologyDiscovery.ITopologyClient.GetServersForRole(String partitionFqdn, List`1 currentlyUsedServers, ADServerRole role, Int32 serversRequested)
   at Microsoft.Exchange.Data.Directory.ServiceTopologyProvider.<>c__DisplayClass10.<InternalServiceProviderGetServersForRole>b__f(IPooledServiceProxy`1 proxy)
   at Microsoft.Exchange.Net.ServiceProxyPool`1.TryCallServiceWithRetry(Action`1 action, String debugMessage, WCFConnectionStateTuple proxyToUse, Int32 numberOfRetries, Boolean doNotReturnProxyOnSuccess, Exception& exception)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSExchange ADAccess" />
    <EventID Qualifiers="49156">4027</EventID>
    <Level>2</Level>
    <Task>1</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-08-31T18:51:17.000000000Z" />
    <EventRecordID>79881</EventRecordID>
    <Channel>Application</Channel>
    <Computer>MBX.sfimaging.ad</Computer>
    <Security />
  </System>
  <EventData>
    <Data>w3wp.exe</Data>
    <Data>24448</Data>
    <Data>Get Servers for sfimaging.ad</Data>
    <Data>TopologyClientTcpEndpoint (localhost)</Data>
    <Data>1</Data>
    <Data>System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp; rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
   at Microsoft.Exchange.Data.Directory.TopologyDiscovery.ITopologyClient.GetServersForRole(String partitionFqdn, List`1 currentlyUsedServers, ADServerRole role, Int32 serversRequested)
   at Microsoft.Exchange.Data.Directory.ServiceTopologyProvider.&lt;&gt;c__DisplayClass10.&lt;InternalServiceProviderGetServersForRole&gt;b__f(IPooledServiceProxy`1 proxy)
   at Microsoft.Exchange.Net.ServiceProxyPool`1.TryCallServiceWithRetry(Action`1 action, String debugMessage, WCFConnectionStateTuple proxyToUse, Int32 numberOfRetries, Boolean doNotReturnProxyOnSuccess, Exception&amp; exception)</Data>
  </EventData>
</Event>

====================================================================
Event log contents
0
Patrick BogersDatacenter platform engineer LindowsCommented:
Hi again,

Are you able to restart the Microsoft Information Store as well or preferably the entire server if that doesnt work?
0
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
0
labdunnAuthor Commented:
I think you were right that the TrendMicro install had changed the apppool from 4.0 to 2.0.  I changed this back and changed the symptoms but didn't fix the problem.  I logged into another Exchange 2013 server and checked the Exchange IIS settings.  I discovered the apppool for all Exchange's virtual directories had been changed from their specific apppools to the defaultapppool.  I suspect this happened with Trend changed the default from 4.0 to 2.0.

Thanks for your help.

Bill
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.