Windows Server 2016

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Windows Server 2016

Post by egormsen » Wed Sep 12, 2018 7:52 am

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

Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Windows Server 2016

Post by jmestep » Wed Sep 12, 2018 9:08 pm

I usually see that error when the site can't connect to the database.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Windows Server 2016

Post by egormsen » Thu Sep 13, 2018 12:42 am

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?
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

cdgaefke
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Wed Aug 08, 2018 2:14 am

Re: Windows Server 2016

Post by cdgaefke » Mon Sep 17, 2018 6:49 am

Hello, AC Gold 12R2 is working fine here on Server 2016. Didn't have to tweak anything in IIS.

Charles

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Windows Server 2016

Post by AbleMods » Fri Oct 05, 2018 5:15 am

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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply