Link to home
Start Free TrialLog in
Avatar of Orlando Rodrigues
Orlando Rodrigues

asked on

Exchange error in /owa Application

OWA stopped working.

The only error I have in Event viewer is the following:

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          04-01-2018 11:45:13
Event ID:      1310
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      SERVER-CR.rp-sroc.local
Description:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 04-01-2018 11:45:13
Event time (UTC): 04-01-2018 11:45:13
Event ID: 19f3c753447c413d9472b773800071ee
Event sequence: 1
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT/owa-4-131595399127484622
    Trust level: Full
    Application Virtual Path: /owa
    Application Path: C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\
    Machine name: SERVER-CR
 
Process information:
    Process ID: 1104
    Process name: w3wp.exe
    Account name: NT AUTHORITY\SYSTEM
 
Exception information:
    Exception type: HttpException
    Exception message: Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\web.config line 77)
 
Request information:
    Request URL: https://10.0.0.10:443/owa/auth/error.aspx?aspxerrorpath=/owa/ 
    Request path: /owa/auth/error.aspx
    User host address: 10.0.0.10
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\SYSTEM
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\SYSTEM
    Is impersonating: False
    Stack trace:    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
 
 
Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 2.0.50727.0" />
    <EventID Qualifiers="32768">1310</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2018-01-04T11:45:13.000000000Z" />
    <EventRecordID>3397543</EventRecordID>
    <Channel>Application</Channel>
    <Computer>SERVER-CR.rp-sroc.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3008</Data>
    <Data>A configuration error has occurred.</Data>
    <Data>04-01-2018 11:45:13</Data>
    <Data>04-01-2018 11:45:13</Data>
    <Data>19f3c753447c413d9472b773800071ee</Data>
    <Data>1</Data>
    <Data>1</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/1/ROOT/owa-4-131595399127484622</Data>
    <Data>Full</Data>
    <Data>/owa</Data>
    <Data>C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\</Data>
    <Data>SERVER-CR</Data>
    <Data>
    </Data>
    <Data>1104</Data>
    <Data>w3wp.exe</Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>HttpException</Data>
    <Data>Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\web.config line 77)</Data>
    <Data>https://10.0.0.10:443/owa/auth/error.aspx?aspxerrorpath=/owa/</Data>
    <Data>/owa/auth/error.aspx</Data>
    <Data>10.0.0.10</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>1</Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>False</Data>
    <Data>   at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
</Data>
  </EventData>
</Event>

Any suggestions?

I already searched for other solutions and found none.
SOLUTION
Avatar of Andy M
Andy M
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Orlando Rodrigues
Orlando Rodrigues

ASKER

I already had done the first solution provided and it didn't work.

Any more suggestions?

OR
I noticed now that the error in event viewer was related to the older Web.Config file.

The new one gives me the following error:
Log Name:      Application
Source:        MSExchange Web Services
Date:          04-01-2018 15:43:30
Event ID:      26
Task Category: Core
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      SERVER-CR.rp-sroc.local
Description:
The Exchange certificate [Subject]
  CN=remote.cr-sroc.pt

[Issuer]
  CN=rp-sroc-SERVER-CR-CA

[Serial Number]
  752950D6000100000024

[Not Before]
  04-03-2016 14:56:39

[Not After]
  04-03-2018 14:56:39

[Thumbprint]
  6602B61D07E2F9157299CA65A312B7CE5097C4A4
 will expire on 04-03-2018 14:56:39.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSExchange Web Services" />
    <EventID Qualifiers="49152">26</EventID>
    <Level>3</Level>
    <Task>1</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2018-01-04T15:43:30.000000000Z" />
    <EventRecordID>3397644</EventRecordID>
    <Channel>Application</Channel>
    <Computer>SERVER-CR.rp-sroc.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>[Subject]
  CN=remote.cr-sroc.pt

[Issuer]
  CN=rp-sroc-SERVER-CR-CA

[Serial Number]
  752950D6000100000024

[Not Before]
  04-03-2016 14:56:39

[Not After]
  04-03-2018 14:56:39

[Thumbprint]
  6602B61D07E2F9157299CA65A312B7CE5097C4A4
</Data>
    <Data>04-03-2018 14:56:39</Data>
  </EventData>
</Event>

Open in new window

And I also have this one:

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          04-01-2018 15:43:27
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      SERVER-CR.rp-sroc.local
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 04-01-2018 15:43:27 
Event time (UTC): 04-01-2018 15:43:27 
Event ID: 0799b9f7dc7e44c691e2e95a6e347975 
Event sequence: 4 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT/owa-1-131595541993588816 
    Trust level: Full 
    Application Virtual Path: /owa 
    Application Path: C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\ 
    Machine name: SERVER-CR 
 
Process information: 
    Process ID: 4128 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\SYSTEM 
 
Exception information: 
    Exception type: HttpException 
    Exception message: The type initializer for 'Microsoft.Exchange.Clients.Owa.Core.Culture' threw an exception. 
 
Request information: 
    Request URL: https://server-cr:443/owa/ 
    Request path: /owa/ 
    User host address: 10.0.0.10 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\SYSTEM 
 
Thread information: 
    Thread ID: 16 
    Thread account name: NT AUTHORITY\SYSTEM 
    Is impersonating: False 
    Stack trace:    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
 
 
Custom event details: 

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 2.0.50727.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2018-01-04T15:43:27.000000000Z" />
    <EventRecordID>3397640</EventRecordID>
    <Channel>Application</Channel>
    <Computer>SERVER-CR.rp-sroc.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>04-01-2018 15:43:27</Data>
    <Data>04-01-2018 15:43:27</Data>
    <Data>0799b9f7dc7e44c691e2e95a6e347975</Data>
    <Data>4</Data>
    <Data>1</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/1/ROOT/owa-1-131595541993588816</Data>
    <Data>Full</Data>
    <Data>/owa</Data>
    <Data>C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\</Data>
    <Data>SERVER-CR</Data>
    <Data>
    </Data>
    <Data>4128</Data>
    <Data>w3wp.exe</Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>HttpException</Data>
    <Data>The type initializer for 'Microsoft.Exchange.Clients.Owa.Core.Culture' threw an exception.</Data>
    <Data>https://server-cr:443/owa/</Data>
    <Data>/owa/</Data>
    <Data>10.0.0.10</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>16</Data>
    <Data>NT AUTHORITY\SYSTEM</Data>
    <Data>False</Data>
    <Data>   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
</Data>
  </EventData>
</Event>

Open in new window

Hi Orlando,

What Exchange versión do you have?

Did you had some changes in your environment?

Regards
Valentina
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The issue was solved by the author