Web Apps Server ASP .NET error code 3005 event ID 1309 same key already added

I've had Office Web App Server 2013 running for about a week now, and today all of a sudden, users aren't able to user office web apps through SharePoint, Lync, or Exchange. on the Web App server i'm receiving the following error:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 2/11/2013 3:16:34 PM

Event time (UTC): 2/11/2013 11:16:34 PM

Event ID: 749adeaec3404f709e73cc62ca464d12

Event sequence: 114

Event occurrence: 45

Event detail code: 0

Application information:

    Application domain: /LM/W3SVC/2/ROOT/x-1-130050953692875562

    Trust level: Full

    Application Virtual Path: /x

    Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\

    Machine name: OWA

Process information:

    Process ID: 2844

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:

    Exception type: ArgumentException

    Exception message: An item with the same key has already been added.

   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

   at Microsoft.Office.Web.Apps.Environment.WacServer.WSConfigAdapter.TryGetValue[T](String settingName, T& value)

   at Microsoft.Office.Web.Apps.Common.WopiDocument.ValidateHostAndSetFileSource()

   at Microsoft.Office.Web.Apps.Common.WopiDocument..ctor(String fileRep, String accessToken, Int64 accessTokenTtl, String version, String sessionContext, WopiType wopiType)

   at Microsoft.Office.Web.Apps.Common.WopiDocument.IsValidWopiQueryString(String querySignature, BaseDocumentType docType, Boolean createDoc, BaseDocument& doc)

   at Microsoft.Office.Web.Apps.Common.WopiDocument.CreateFromQuerySignature(String querySignature)

   at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.GetFileRepresentation(HttpContext context, Boolean newWorkbook)

   at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)

   at Microsoft.Office.Excel.WebUI.XlViewerInternal.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information:

    Request URL: https://office.domain.com:443/x/_layouts/xlviewerinternal.aspx?ui=en-US&rs=en-US&WOPISrc=http://tis-sp.teehub1.com/division/options/_vti_bin/wopi.ashx/files/24e7f514ec264dcabdead01d4f602f7e&sc=http://kifo-sp.domain.com/division/options/SitePages/Home.aspx?RootFolder=An unhandled exception has occurred.FdivisionAn unhandled exception has occurred.FoptionsAn unhandled exception has occurred.FOptionsAn unhandled exception has occurred.FFund%201%2FPost%2Dtrade%2FCollateral%20and%20margin&FolderCTID=0x012000783B1A92E1B44A4EA90ED899C583F732&View=%7B720E5A2B%2D4E4B%2D4038%2DB48E%2D61FC345B480D%7D

    Request path: /x/_layouts/xlviewerinternal.aspx

    User host address: 216.14.34.228

    User: 

    Is authenticated: False

    Authentication Type: 

    Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:

    Thread ID: 36

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace:    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

   at Microsoft.Office.Web.Apps.Environment.WacServer.WSConfigAdapter.TryGetValue[T](String settingName, T& value)

   at Microsoft.Office.Web.Apps.Common.WopiDocument.ValidateHostAndSetFileSource()

   at Microsoft.Office.Web.Apps.Common.WopiDocument..ctor(String fileRep, String accessToken, Int64 accessTokenTtl, String version, String sessionContext, WopiType wopiType)

   at Microsoft.Office.Web.Apps.Common.WopiDocument.IsValidWopiQueryString(String querySignature, BaseDocumentType docType, Boolean createDoc, BaseDocument& doc)

   at Microsoft.Office.Web.Apps.Common.WopiDocument.CreateFromQuerySignature(String querySignature)

   at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.GetFileRepresentation(HttpContext context, Boolean newWorkbook)

   at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)

   at Microsoft.Office.Excel.WebUI.XlViewerInternal.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:


Any ideas on how to solve this?
February 12th, 2013 12:04am

Hi Derek,

The error seems to be Excel Services associated with Office Web Apps Server 2013 in an unhealthy state, please try rebooting the Office Web Apps 2013 Server

From the Office Web Apps Server 2013 | Windows PowerShell try following cmdlet

Get-OfficeWebAppsHost

The output will display the Domain Names allowed, check the TechNet article http://technet.microsoft.com/en-us/library/jj219446.aspx for more details

Thank you,

Sundar

Free Windows Admin Tool Kit Click here and download it now
February 12th, 2013 2:21pm

i rebooted this server several times before posting. was not a fix. i ended up reinstalling Office Web Apps Server and reconfigured everything and it's working again. 
February 18th, 2013 5:11pm

In case anyone else runs into this, its because you have duplicate entries in the list of allowed domains. Do a Get-OfficeWebAppsHost and you will see dupes. Use the Remove-OfficeWebAppsHost cmdlet, passing in the dupe(s) in order to remove them and resolve the issue.
  • Proposed as answer by ToninoF Thursday, January 30, 2014 7:55 PM
Free Windows Admin Tool Kit Click here and download it now
January 27th, 2014 5:40pm

Thank-you!  Removing the duplicate fixed it, and I'm very happy I didn't need to reinstall!
March 22nd, 2014 2:24am

This is not an actual solution, i suspect reinstalling it has actually fixed the duplicate domains, which is indeed what happens.
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2015 5:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics