Login
New User

Welcome to destr0yr's asylum
Monday, October 06 2008 @ 07:56 AM PDT

Exchange 2007: ASP.NET Web Event 1310

WindowsLast night I performed some Windows Updates on my Exchange 2007 Server with Windows 2003 Standard R2 x64.  The update seemed to break ActiveSync with errors repeating in my Application log every 10-20 seconds, such as:

Event Type:    Warning
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1310
Date:        12/11/2007
Time:        9:38:20 AM
User:        N/A
Computer:    CALVIN
Description:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 12/11/2007 9:38:20 AM
Event time (UTC): 12/11/2007 5:38:20 PM
Event ID: 14bcfeecf45a444fb846b8a62a87d674
Event sequence: 1
Event occurrence: 1
Event detail code: 0



To correct the issue, I simple delete the ActiveSync Virtual Directory and recreated it in powershell using the following two commands (where CALVIN is the server name):

[PS] > Remove-ActiveSyncVirtualDirectory -Identity "CALVIN\Microsoft-Server-ActiveSync (Default Web Site)"
[PS] > New-ActiveSyncVirtualDirectory -WebSiteName "Default Web Site" -ExternalUrl "http://calvin.my.domain.com/Microsoft-Server-ActiveSync"

Name                       Server                     InternalUrl
----                       ------                     -----------
Microsoft-Server-Active... CALVIN                     https://calvin.my.dom...

Here's the full error from the Eventlog:

Event Type:    Warning
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1310
Date:        12/11/2007
Time:        9:38:20 AM
User:        N/A
Computer:    CALVIN
Description:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 12/11/2007 9:38:20 AM
Event time (UTC): 12/11/2007 5:38:20 PM
Event ID: 14bcfeecf45a444fb846b8a62a87d674
Event sequence: 1
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT/Autodiscover-1991-128418683006148147
    Trust level: Full
    Application Virtual Path: /Autodiscover
    Application Path: C:\Program Files\Microsoft\Exchange Server\ClientAccess\Autodiscover\
    Machine name: CALVIN
 
Process information:
    Process ID: 5032
    Process name: w3wp.exe
    Account name: NT AUTHORITY\SYSTEM
 
Exception information:
    Exception type: HttpException
    Exception message: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 
Request information:
    Request URL: https://calvin.my.domain.com:443/Autodiscover/Autodiscover.xml
    Request path: /Autodiscover/Autodiscover.xml
    User host address: 192.168.0.114
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITYSYSTEM
 
Thread information:
    Thread ID: 5
    Thread account name: NT AUTHORITYSYSTEM
    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:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.



Story Options

Trackback

Trackback URL for this entry: http://www.destr0yr.com/trackback.php/Exchange2007_ASPNETWebEvent1310

No trackback comments for this entry.
Exchange 2007: ASP.NET Web Event 1310 | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Exchange 2007: ASP.NET Web Event 1310
Authored by: destr0yr on Tuesday, December 11 2007 @ 12:15 PM PST
I changed up my New-ActiveSyncVirtualDirectory line a bit (i had an error in the Console regarding the domain controller not finding some info). The new line is:

[PS] > New-ActiveSyncVirtualDirectory -WebSiteName "Default Web Site" -DomainController <fqdn of primary domain controller> -ExternalUrl "https://foo.bar.com/Microsoft-Server-ActiveSync" -InternalUrl "https://foo.internal.bar.com/Microsoft-Server-ActiveSync"