Developer forum

Forum » CMS - Standard features » Error calling websevice

Error calling websevice

Klaas Spaargaren
Reply

I have an issue when calling a webservice, sometimes an error occurs:

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

    Stack trace:    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Dynamicweb.Frontend.UrlProviders.LatinNormalization.InitializeCharacterTable()
   at Dynamicweb.Frontend.UrlProviders.LatinNormalization.LatinToAscii(String InString)
   at Dynamicweb.Base.URLEnable(String strText, Boolean extendReplacementRange)
   at Dynamicweb.Frontend.ApplicationLoad.GetUrlName(Page TempPage)
   at Dynamicweb.Frontend.ApplicationLoad.RetrievePage()
   at Dynamicweb.Frontend.ApplicationLoad.RetrieveApplication()
   at Dynamicweb.GlobalAsaxHandler.ApplicationStart(Object sender, EventArgs e)
   at Dynamicweb.GlobalAsaxHandler.Run(Object sender, EventArgs e)
   at Dynamicweb.Admin.Global.Application_AuthenticateRequest(Object sender, EventArgs e)
   at CustomModules.Global.Application_AuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Any idea on how to solve this problem ?

 

 

 

 

 


Replies

 
Morten Bengtson
Reply

This particular error sometimes occured on application start in older versions of Dynamicweb. Try upgrading to a more recent version.

 

To avoid long delays and problems related to application start, you can try to make sure that the application is "always running" by avoiding frequent application pool recycles and automatic shutdowns. In IIS 7.5 or later it is even possible to set startmode="AlwaysRunning" (not the same as autostart).

 

You must be logged in to post in the forum