Item has already been added. Key in dictionary: 'allowservertodownloadremotefiles'

Topics: ASP.NET 2.0, Business Logic Layer
Jun 28, 2013 at 10:20 PM
Hi

I want to make some changes to my blogengine files(add elmah, add an about page).

I downloaded all the files from my hosting site, made a blank solution in VS 2010 and then added that downloaded folder as an existing "web site"

But when I run it I get
Server Error in '/wwwroot' Application.
Item has already been added. Key in dictionary: 'allowservertodownloadremotefiles'  Key being added: 'allowservertodownloadremotefiles'
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: Item has already been added. Key in dictionary: 'allowservertodownloadremotefiles'  Key being added: 'allowservertodownloadremotefiles'

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: Item has already been added. Key in dictionary: 'allowservertodownloadremotefiles'  Key being added: 'allowservertodownloadremotefiles']
   System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +10647411
   System.Collections.Hashtable.Add(Object key, Object value) +10
   System.Collections.Specialized.StringDictionary.Add(String key, String value) +60
   BlogEngine.Core.Providers.DbBlogProvider.LoadSettings(Blog blog) in c:\Users\thecuddlyhoney\Desktop\blogengine-2.8.0.3\blogengine_0d07d8ba3a50\BlogEngine\BlogEngine.Core\Providers\DbBlogProvider.cs:1049
   BlogEngine.Core.Providers.BlogService.LoadSettings(Blog blog) in c:\Users\thecuddlyhoney\Desktop\blogengine-2.8.0.3\blogengine_0d07d8ba3a50\BlogEngine\BlogEngine.Core\Providers\BlogService.cs:389
   BlogEngine.Core.BlogSettings.Load(Blog blog) in c:\Users\thecuddlyhoney\Desktop\blogengine-2.8.0.3\blogengine_0d07d8ba3a50\BlogEngine\BlogEngine.Core\BlogSettings.cs:1363
   BlogEngine.Core.BlogSettings..ctor(Blog blog) in c:\Users\thecuddlyhoney\Desktop\blogengine-2.8.0.3\blogengine_0d07d8ba3a50\BlogEngine\BlogEngine.Core\BlogSettings.cs:93
   BlogEngine.Core.BlogSettings.GetInstanceSettings(Blog blog) in c:\Users\thecuddlyhoney\Desktop\blogengine-2.8.0.3\blogengine_0d07d8ba3a50\BlogEngine\BlogEngine.Core\BlogSettings.cs:126
   BlogEngine.Core.BlogSettings.get_Instance() in c:\Users\thecuddlyhoney\Desktop\blogengine-2.8.0.3\blogengine_0d07d8ba3a50\BlogEngine\BlogEngine.Core\BlogSettings.cs:108
   BlogEngine.Core.Web.HttpModules.WwwSubDomainModule.ContextBeginRequest(Object sender, EventArgs e) in c:\Users\thecuddlyhoney\Desktop\blogengine-2.8.0.3\blogengine_0d07d8ba3a50\BlogEngine\BlogEngine.Core\Web\HttpModules\WwwSubDomainModule.cs:120
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044 
I have no clue why.