Avatar of labdunn
labdunn asked on

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
ExchangeASP.NET

Avatar of undefined
Last Comment
labdunn

8/22/2022 - Mon
Dipak

Patrick Bogers

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?)
ASKER
labdunn

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
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Patrick Bogers

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
labdunn

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
Patrick Bogers

Hi again,

Are you able to restart the Microsoft Information Store as well or preferably the entire server if that doesnt work?
Mohammed Khawaja

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
labdunn

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