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.
Orlando RodriguesAsked:
Who is Participating?
 
Orlando RodriguesConnect With a Mentor Author Commented:
0
 
Andy MConnect With a Mentor Internal Systems ManagerCommented:
Looks like an issue with the web.config file used by Exchange, possibly corrupted by an update.

You could try the following:

In C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa you should have a web.config file and a web.config.bak file. Rename web.config to something like web.config.old and rename web.config.bak to web.config. Restart IIS (or the server for good measure) and OWA should start working again.
0
 
Seth SimmonsConnect With a Mentor Sr. Systems AdministratorCommented:
OWA stopped working.

what changed?
what CU are you on?
it says "The system cannot find the file specified." which means something was there and isn't anymore if it just stopped working
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.

 
Valentina PerezConnect With a Mentor Exchange ServersCommented:
Hi Orlando,

I think the same as Andy...I think the webconfig is corrupted.

Have you installed a new update?

Regards
Valentina
0
 
Orlando RodriguesAuthor Commented:
I already had done the first solution provided and it didn't work.

Any more suggestions?

OR
0
 
Orlando RodriguesAuthor Commented:
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

0
 
Orlando RodriguesAuthor Commented:
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

0
 
Valentina PerezExchange ServersCommented:
Hi Orlando,

What Exchange versión do you have?

Did you had some changes in your environment?

Regards
Valentina
0
 
Valentina PerezExchange ServersCommented:
The issue was solved by the author
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.