Page 1 of 1

Windows Server 2016

Posted: Wed Sep 12, 2018 7:52 am
by egormsen
Anyone running AC with Windows Server 2016/IIS 10?

I am trying to test it out, but running into the following error when the site attempts to load:

Code: Select all

Server Error in '/' Application.
________________________________________
An item with the same key has already been added.
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.ArgumentException: An item with the same key has already been added.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 
[ArgumentException: An item with the same key has already been added.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +56
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14764727
   NHibernate.Search.Cfg.CfgHelper.Configure(Configuration cfg) +335
   NHibernate.Search.Impl.SearchFactoryImpl..ctor(Configuration cfg) +266
   NHibernate.Search.Impl.SearchFactoryImpl.GetSearchFactory(Configuration cfg) +219
   NHibernate.Search.Event.FullTextIndexEventListener.Initialize(Configuration cfg) +28
   NHibernate.Event.EventListeners.InitializeListeners(Configuration cfg, Object[] list) +87
   NHibernate.Event.EventListeners.InitializeListeners(Configuration cfg) +366
   NHibernate.Cfg.Configuration.BuildSessionFactory() +93
   CommerceBuilder.Common.DatabaseConfiguration.get_SessionFactory() +604
   CommerceBuilder.Common.DatabaseSessionManager.GetSession() +207
   CommerceBuilder.DomainModel.NHibernateHelper.QueryOver() +47
   CommerceBuilder.Services.StoreLocator.LocateCurrent() +114
   CommerceBuilder.Common.AbleContext.get_Store() +61
   CommerceBuilder.Licensing.j.a(String A_0) +548
   CommerceBuilder.Services.HttpModule.b() +261
   CommerceBuilder.Services.HttpModule.b(Object A_0, EventArgs A_1) +840
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Re: Windows Server 2016

Posted: Wed Sep 12, 2018 9:08 pm
by jmestep
I usually see that error when the site can't connect to the database.

Re: Windows Server 2016

Posted: Thu Sep 13, 2018 12:42 am
by egormsen
I have verified that the I can connect to the database from the server.

Was wondering if there is something different about IIS 10 that maybe needs to set/changed?

Re: Windows Server 2016

Posted: Mon Sep 17, 2018 6:49 am
by cdgaefke
Hello, AC Gold 12R2 is working fine here on Server 2016. Didn't have to tweak anything in IIS.

Charles

Re: Windows Server 2016

Posted: Fri Oct 05, 2018 5:15 am
by AbleMods
Eldon I assume (by now) that you got this fixed?

I've seen that message happen when there is a duplication between the site specific web.config file and the server-wide file applicationhost.config. There are actually two web.config files on an IIS server. One is called applicationhost.config and applies to all websites hosted by that server's IIS process. The second is the web.config specific to each individual website.

On rare occasions, there will be something specified in the applicationhost.config file that is ALSO specified in the individual site's web.config file. When this happens, it can confuse Able as it tries to parse for certain configuration values.

And as Judy said, I've too have seen it happen where there's an issue with the .Net application trying to connect/access the SQL database. I usually test SQL connections from the web server by creating a test connection in Control Panel/ODBC connections section.